diff options
Diffstat (limited to 'src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs')
-rw-r--r-- | src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs b/src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs deleted file mode 100644 index 4a490ed03..000000000 --- a/src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs +++ /dev/null @@ -1,23 +0,0 @@ -// run-pass -// Test associated type references in a struct literal. Issue #20535. - - -pub trait Foo { - type Bar; - - fn dummy(&self) { } -} - -impl Foo for isize { - type Bar = isize; -} - -struct Thing<F: Foo> { - a: F, - b: F::Bar, -} - -fn main() { - let thing = Thing{a: 1, b: 2}; - assert_eq!(thing.a + 1, thing.b); -} |