about summary refs log tree commit diff
path: root/src/test/ui/unsafe/unsafe-trait-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unsafe/unsafe-trait-impl.rs')
-rw-r--r--src/test/ui/unsafe/unsafe-trait-impl.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/unsafe/unsafe-trait-impl.rs b/src/test/ui/unsafe/unsafe-trait-impl.rs
deleted file mode 100644
index 1fc84ca0256..00000000000
--- a/src/test/ui/unsafe/unsafe-trait-impl.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Check that safe fns are not a subtype of unsafe fns.
-
-trait Foo {
-    unsafe fn len(&self) -> u32;
-}
-
-impl Foo for u32 {
-    fn len(&self) -> u32 { *self }
-    //~^ ERROR method `len` has an incompatible type for trait
-    //~| expected signature `unsafe fn(&u32) -> _`
-    //~| found signature `fn(&u32) -> _`
-}
-
-fn main() { }