fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
628 B18 linesraw
1error[E0277]: the trait bound `(): Trait<for<'b> fn(fn(&'b u32))>` is not satisfied
2  --> $DIR/hrtb-exists-forall-trait-covariant.rs:36:11
3   |
4LL | fn foo<T>()
5   |    ---
6LL | where
7LL |     T: Trait<for<'b> fn(fn(&'b u32))>,
8   |        ------------------------------ required by this bound in `foo`
9...
10LL |     foo::<()>();
11   |           ^^ the trait `Trait<for<'b> fn(fn(&'b u32))>` is not implemented for `()`
12   |
13   = help: the following implementations were found:
14             <() as Trait<fn(fn(&'a u32))>>
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.