error[E0277]: the trait bound `for<'a> &'a _: Bar` is not satisfied | |
--> $DIR/where-for-self-2.rs:21:5 | |
| | |
LL | fn foo<T>(x: &T) | |
| --- | |
LL | where for<'a> &'a T: Bar | |
| --- required by this bound in `foo` | |
... | |
LL | foo(&X); | |
| ^^^ the trait `for<'a> Bar` is not implemented for `&'a _` | |
| | |
= help: the following implementations were found: | |
<&'static u32 as Bar> | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0277`. |