fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB31 linesraw
1error[E0277]: the trait bound `for<'a> StaticInt: Foo<&'a isize>` is not satisfied
2  --> $DIR/hrtb-just-for-static.rs:24:17
3   |
4LL | fn want_hrtb<T>()
5   |    ---------
6LL |     where T : for<'a> Foo<&'a isize>
7   |               ---------------------- required by this bound in `want_hrtb`
8...
9LL |     want_hrtb::<StaticInt>()
10   |                 ^^^^^^^^^ the trait `for<'a> Foo<&'a isize>` is not implemented for `StaticInt`
11   |
12   = help: the following implementations were found:
13             <StaticInt as Foo<&'static isize>>
14
15error[E0277]: the trait bound `for<'a> &'a u32: Foo<&'a isize>` is not satisfied
16  --> $DIR/hrtb-just-for-static.rs:30:17
17   |
18LL | fn want_hrtb<T>()
19   |    ---------
20LL |     where T : for<'a> Foo<&'a isize>
21   |               ---------------------- required by this bound in `want_hrtb`
22...
23LL |     want_hrtb::<&'a u32>()
24   |                 ^^^^^^^ the trait `for<'a> Foo<&'a isize>` is not implemented for `&'a u32`
25   |
26   = help: the following implementations were found:
27             <&'a u32 as Foo<&'a isize>>
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0277`.