blob: 4a582c68efc9bb01d8453cb093416cd44703c409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// run-pass
pub trait Foo {
fn method1() {}
fn method2();
}
struct Slice<'a, T: 'a>(#[allow(unused_tuple_struct_fields)] &'a [T]);
impl<'a, T: 'a> Foo for Slice<'a, T> {
fn method2() {
<Self as Foo>::method1();
}
}
fn main() {
<Slice<()> as Foo>::method2();
}
|