diff options
Diffstat (limited to 'src/test/ui/typeck/point-at-type-parameter-definition.rs')
-rw-r--r-- | src/test/ui/typeck/point-at-type-parameter-definition.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/typeck/point-at-type-parameter-definition.rs b/src/test/ui/typeck/point-at-type-parameter-definition.rs deleted file mode 100644 index 856c0db08..000000000 --- a/src/test/ui/typeck/point-at-type-parameter-definition.rs +++ /dev/null @@ -1,17 +0,0 @@ -trait Trait { - fn do_stuff(&self); -} - -struct Hello; - -impl Hello { - fn method(&self) {} -} - -impl<Hello> Trait for Vec<Hello> { - fn do_stuff(&self) { - self[0].method(); //~ ERROR no method named `method` found for type parameter `Hello` in the current scope - } -} - -fn main() {} |