fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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