36 lines
1 KiB
Text
36 lines
1 KiB
Text
![]() |
error[E0277]: the trait bound `T: Bar` is not satisfied
|
||
|
--> $DIR/trait-where-clause.rs:13:5
|
||
|
|
|
||
|
LL | T::b();
|
||
|
| ^^^^ the trait `Bar` is not implemented for `T`
|
||
|
|
|
||
|
note: required by `Foo::b`
|
||
|
--> $DIR/trait-where-clause.rs:8:5
|
||
|
|
|
||
|
LL | fn b() where Self: ~const Bar;
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
help: consider further restricting this bound
|
||
|
|
|
||
|
LL | const fn test1<T: ~const Foo + Bar + Bar>() {
|
||
|
| +++++
|
||
|
|
||
|
error[E0277]: the trait bound `T: Bar` is not satisfied
|
||
|
--> $DIR/trait-where-clause.rs:24:5
|
||
|
|
|
||
|
LL | T::b();
|
||
|
| ^^^^ the trait `Bar` is not implemented for `T`
|
||
|
|
|
||
|
note: required by `Foo::b`
|
||
|
--> $DIR/trait-where-clause.rs:8:5
|
||
|
|
|
||
|
LL | fn b() where Self: ~const Bar;
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
help: consider further restricting this bound
|
||
|
|
|
||
|
LL | fn test3<T: Foo + Bar>() {
|
||
|
| +++++
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0277`.
|