Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.5 KiB
Plaintext
Raw Normal View History

error[E0277]: the trait bound `T: Foo` is not satisfied
2024-06-30 17:08:45 +00:00
--> $DIR/trait-where-clause-const.rs:22:5
2023-07-29 08:20:25 +00:00
|
LL | T::b();
| ^ the trait `Foo` is not implemented for `T`
2023-07-29 08:20:25 +00:00
|
note: required by a bound in `Foo::b`
2024-06-30 17:08:45 +00:00
--> $DIR/trait-where-clause-const.rs:13:1
|
2024-06-25 09:50:01 +00:00
LL | #[const_trait]
| ^^^^^^^^^^^^^^ required by this bound in `Foo::b`
...
LL | fn b() where Self: ~const Bar;
2024-06-25 09:50:01 +00:00
| - required by a bound in this associated function
error[E0308]: mismatched types
2024-06-30 17:08:45 +00:00
--> $DIR/trait-where-clause-const.rs:22:5
|
2024-06-25 09:50:01 +00:00
LL | T::b();
| ^^^^^^ expected `host`, found `true`
|
= note: expected constant `host`
found constant `true`
2023-07-29 08:20:25 +00:00
error[E0277]: the trait bound `T: Foo` is not satisfied
2024-06-30 17:08:45 +00:00
--> $DIR/trait-where-clause-const.rs:25:5
2023-07-29 08:20:25 +00:00
|
LL | T::c::<T>();
| ^ the trait `Foo` is not implemented for `T`
|
note: required by a bound in `Foo::c`
2024-06-30 17:08:45 +00:00
--> $DIR/trait-where-clause-const.rs:13:1
|
2024-06-25 09:50:01 +00:00
LL | #[const_trait]
| ^^^^^^^^^^^^^^ required by this bound in `Foo::c`
...
LL | fn c<T: ~const Bar>();
2024-06-25 09:50:01 +00:00
| - required by a bound in this associated function
error[E0308]: mismatched types
2024-06-30 17:08:45 +00:00
--> $DIR/trait-where-clause-const.rs:25:5
2024-06-25 09:50:01 +00:00
|
LL | T::c::<T>();
| ^^^^^^^^^^^ expected `host`, found `true`
2023-07-29 08:20:25 +00:00
|
2024-06-25 09:50:01 +00:00
= note: expected constant `host`
found constant `true`
2023-07-29 08:20:25 +00:00
2024-06-25 09:50:01 +00:00
error: aborting due to 4 previous errors
2023-07-29 08:20:25 +00:00
2024-06-25 09:50:01 +00:00
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.