]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/issue-46989.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / hrtb / issue-46989.stderr
CommitLineData
f035d41b
XL
1error: implementation of `Foo` is not general enough
2 --> $DIR/issue-46989.rs:38:5
0731742a 3 |
f035d41b
XL
4LL | trait Foo {}
5 | ------------ trait `Foo` defined here
e1599b0c 6...
0731742a 7LL | assert_foo::<fn(&i32)>();
f035d41b 8 | ^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
0731742a 9 |
f035d41b
XL
10 = note: `Foo` would have to be implemented for the type `for<'r> fn(&'r i32)`
11 = note: ...but `Foo` is actually implemented for the type `fn(&'0 i32)`, for some specific lifetime `'0`
0731742a
XL
12
13error: aborting due to previous error
14