]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/crashes/ice-6256.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / crashes / ice-6256.stderr
CommitLineData
72b1a166
FG
1error[E0308]: mismatched types
2 --> $DIR/ice-6256.rs:11:28
3 |
4LL | let f = |x: &dyn TT| x.func(); //[default]~ ERROR: mismatched types
5 | ^^^^ lifetime mismatch
6 |
7 = note: expected reference `&(dyn TT + 'static)`
8 found reference `&dyn TT`
9note: the anonymous lifetime #1 defined on the body at 11:13...
10 --> $DIR/ice-6256.rs:11:13
11 |
12LL | let f = |x: &dyn TT| x.func(); //[default]~ ERROR: mismatched types
13 | ^^^^^^^^^^^^^^^^^^^^^
14 = note: ...does not necessarily outlive the static lifetime
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.