diff options
Diffstat (limited to 'src/test/ui/nll/user-annotations/normalization-self.rs')
| -rw-r--r-- | src/test/ui/nll/user-annotations/normalization-self.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/test/ui/nll/user-annotations/normalization-self.rs b/src/test/ui/nll/user-annotations/normalization-self.rs deleted file mode 100644 index c18760b53cf..00000000000 --- a/src/test/ui/nll/user-annotations/normalization-self.rs +++ /dev/null @@ -1,26 +0,0 @@ -// check-fail - -trait Trait { type Assoc; } -impl<'a> Trait for &'a () { type Assoc = &'a (); } - -struct MyTuple<T>(T); -impl MyTuple<<&'static () as Trait>::Assoc> { - fn test(x: &(), y: &()) { - Self(x); - //~^ ERROR - let _: Self = MyTuple(y); - //~^ ERROR - } -} - -struct MyStruct<T> { val: T, } -impl MyStruct<<&'static () as Trait>::Assoc> { - fn test(x: &(), y: &()) { - Self { val: x }; - //~^ ERROR - let _: Self = MyStruct { val: y }; - //~^ ERROR - } -} - -fn main() {} |
