summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-bounded-method-type-parameters.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/regions/regions-bounded-method-type-parameters.rs')
-rw-r--r--src/test/ui/regions/regions-bounded-method-type-parameters.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters.rs b/src/test/ui/regions/regions-bounded-method-type-parameters.rs
deleted file mode 100644
index 56e750003..000000000
--- a/src/test/ui/regions/regions-bounded-method-type-parameters.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// Check that explicit region bounds are allowed on the various
-// nominal types (but not on other types) and that they are type
-// checked.
-
-struct Foo;
-
-impl Foo {
- fn some_method<A:'static>(self) { }
-}
-
-fn caller<'a>(x: &isize) {
- Foo.some_method::<&'a isize>();
- //~^ ERROR lifetime may not live long enough
-}
-
-fn main() { }