]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/issue-41366.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / closures / issue-41366.stderr
1 error[E0631]: type mismatch in closure arguments
2 --> $DIR/issue-41366.rs:10:5
3 |
4 LL | (&|_| ()) as &dyn for<'x> Fn(<u32 as T<'x>>::V);
5 | ^^------^
6 | | |
7 | | found signature of `fn(u16) -> _`
8 | expected signature of `fn(<u32 as T<'x>>::V) -> _`
9 |
10 = note: required for the cast to the object type `dyn for<'x> std::ops::Fn(<u32 as T<'x>>::V)`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0631`.