]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-49919.stderr
Consider privacy more carefully when suggesting accessing fields
[rust.git] / src / test / ui / issues / issue-49919.stderr
1 error[E0582]: binding for associated type `Output` references lifetime `'c`, which does not appear in the trait input types
2   --> $DIR/issue-49919.rs:2:39
3    |
4 LL |     let foo: Box<dyn for <'c> Fn() -> &'c T> = Box::new(move || &t);
5    |                                       ^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0582`.