2025-03-11 12:08:45 +00:00
|
|
|
error[E0277]: the trait bound `T: [const] Bar` is not satisfied
|
2024-10-30 18:03:44 +00:00
|
|
|
--> $DIR/trait-where-clause-const.rs:21:5
|
2023-07-29 08:20:25 +00:00
|
|
|
|
|
|
|
|
|
LL | T::b();
|
2024-11-24 01:15:04 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `Foo::b`
|
|
|
|
|
--> $DIR/trait-where-clause-const.rs:15:24
|
|
|
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
LL | fn b() where Self: [const] Bar;
|
|
|
|
|
| ^^^^^^^^^^^ required by this bound in `Foo::b`
|
2023-07-29 08:20:25 +00:00
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
error[E0277]: the trait bound `T: [const] Bar` is not satisfied
|
2024-11-24 01:15:04 +00:00
|
|
|
--> $DIR/trait-where-clause-const.rs:23:12
|
2023-07-29 08:20:25 +00:00
|
|
|
|
|
2023-08-13 13:59:19 +00:00
|
|
|
LL | T::c::<T>();
|
2024-11-24 01:15:04 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
note: required by a bound in `Foo::c`
|
|
|
|
|
--> $DIR/trait-where-clause-const.rs:16:13
|
|
|
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
LL | fn c<T: [const] Bar>();
|
|
|
|
|
| ^^^^^^^^^^^ required by this bound in `Foo::c`
|
2023-07-29 08:20:25 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2023-07-29 08:20:25 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|