]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/region-escape-via-bound.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / impl-trait / region-escape-via-bound.stderr
CommitLineData
94b46f34 1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
48663c56 2 --> $DIR/region-escape-via-bound.rs:15:29
0531ce1d
XL
3 |
4LL | fn foo(x: Cell<&'x u32>) -> impl Trait<'y>
5 | ^^^^^^^^^^^^^^
6 |
1b1a35ee 7note: hidden type `Cell<&'x u32>` captures the lifetime `'x` as defined on the function body at 17:7
48663c56 8 --> $DIR/region-escape-via-bound.rs:17:7
0531ce1d 9 |
8faf50e0
XL
10LL | where 'x: 'y
11 | ^^
0531ce1d
XL
12
13error: aborting due to previous error
14
94b46f34 15For more information about this error, try `rustc --explain E0700`.