summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-unconstrained.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-types/associated-types-unconstrained.rs')
-rw-r--r--src/test/ui/associated-types/associated-types-unconstrained.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/associated-types/associated-types-unconstrained.rs b/src/test/ui/associated-types/associated-types-unconstrained.rs
deleted file mode 100644
index 2fb27bf3c..000000000
--- a/src/test/ui/associated-types/associated-types-unconstrained.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::bar();
- //~^ ERROR E0790
-}