]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr
New upstream version 1.41.1+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`
e74abb32 6 |
60c5eb7d 7 = help: consider replacing `'a` with `'static`
dc9dc135
XL
8help: to allow this `impl Trait` to capture borrowed data with lifetime `'a`, add `'a` as a constraint
9 |
416331ca 10LL | type E<'a, 'b> = impl Sized; + 'a
dc9dc135
XL
11 |
12
13error: aborting due to previous error
14