]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-47309.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-47309.rs
CommitLineData
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
60c5eb7d 6// build-pass
0531ce1d
XL
7
8#![crate_type="rlib"]
9
10pub trait EnvFuture {
11 type Item;
12
13 fn boxed_result<'a>(self) where Self: Sized, Self::Item: 'a, {
14 }
15}
16
17struct Foo;
18
19impl<'a> EnvFuture for &'a Foo {
20 type Item = ();
54a0048b 21}