]>
Commit | Line | Data |
---|---|---|
1 | error[E0277]: the trait bound `for<'a> &'a _: Bar` is not satisfied | |
2 | --> $DIR/where-for-self-2.rs:31:5 | |
3 | | | |
4 | LL | foo(&X); | |
5 | | ^^^ the trait `for<'a> Bar` is not implemented for `&'a _` | |
6 | | | |
7 | = help: the following implementations were found: | |
8 | <&'static u32 as Bar> | |
9 | note: required by `foo` | |
10 | --> $DIR/where-for-self-2.rs:26:1 | |
11 | | | |
12 | LL | / fn foo<T>(x: &T) | |
13 | LL | | where for<'a> &'a T: Bar | |
14 | LL | | {} | |
15 | | |__^ | |
16 | ||
17 | error: aborting due to previous error | |
18 | ||
19 | For more information about this error, try `rustc --explain E0277`. |