diff options
Diffstat (limited to 'src/test/ui/associated-types/associated-types-eq-expr-path.rs')
-rw-r--r-- | src/test/ui/associated-types/associated-types-eq-expr-path.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/associated-types/associated-types-eq-expr-path.rs b/src/test/ui/associated-types/associated-types-eq-expr-path.rs deleted file mode 100644 index 143992f29..000000000 --- a/src/test/ui/associated-types/associated-types-eq-expr-path.rs +++ /dev/null @@ -1,16 +0,0 @@ -// Check that an associated type cannot be bound in an expression path. - -trait Foo { - type A; - fn bar() -> isize; -} - -impl Foo for isize { - type A = usize; - fn bar() -> isize { 42 } -} - -pub fn main() { - let x: isize = Foo::<A=usize>::bar(); - //~^ ERROR associated type bindings are not allowed here -} |