]>
Commit | Line | Data |
---|---|---|
0531ce1d XL |
1 | // Make sure that the mono-item collector does not crash when trying to |
2 | // instantiate a default impl of a method with lifetime parameters. | |
3 | // See https://github.com/rust-lang/rust/issues/47309 | |
4 | ||
5 | // compile-flags:-Clink-dead-code | |
d9bb1a4e | 6 | // build-pass |
0531ce1d XL |
7 | |
8 | #![crate_type="rlib"] | |
9 | ||
10 | pub trait EnvFuture { | |
11 | type Item; | |
12 | ||
13 | fn boxed_result<'a>(self) where Self: Sized, Self::Item: 'a, { | |
14 | } | |
15 | } | |
16 | ||
17 | struct Foo; | |
18 | ||
19 | impl<'a> EnvFuture for &'a Foo { | |
20 | type Item = (); | |
54a0048b | 21 | } |