]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/hrtb-exists-forall-trait-invariant.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / hrtb / hrtb-exists-forall-trait-invariant.stderr
CommitLineData
f035d41b
XL
1error: implementation of `Trait` is not general enough
2 --> $DIR/hrtb-exists-forall-trait-invariant.rs:28:5
0731742a 3 |
f035d41b
XL
4LL | trait Trait<T> {}
5 | ----------------- trait `Trait` defined here
e1599b0c 6...
532ac7d7 7LL | foo::<()>();
f035d41b 8 | ^^^^^^^^^ implementation of `Trait` is not general enough
0731742a 9 |
1b1a35ee
XL
10 = note: `()` must implement `Trait<for<'b> fn(Cell<&'b u32>)>`
11 = note: ...but `()` actually implements `Trait<fn(Cell<&'0 u32>)>`, for some specific lifetime `'0`
0731742a
XL
12
13error: aborting due to previous error
14