]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / multiple-lifetimes / error-handling.stderr
CommitLineData
dc9dc135
XL
1error: lifetime may not live long enough
2 --> $DIR/error-handling.rs:13:56
3 |
4LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
5 | -- lifetime `'a` defined here ^^^^^^^^^ opaque type requires that `'a` must outlive `'static`
6help: to allow this `impl Trait` to capture borrowed data with lifetime `'a`, add `'a` as a constraint
7 |
416331ca 8LL | type E<'a, 'b> = impl Sized; + 'a
dc9dc135
XL
9 |
10
11error: aborting due to previous error
12