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