]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/trait-safety-fn-body.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / trait-safety-fn-body.rs
diff --git a/src/test/ui/traits/trait-safety-fn-body.rs b/src/test/ui/traits/trait-safety-fn-body.rs
deleted file mode 100644 (file)
index df52774..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// Check that an unsafe impl does not imply that unsafe actions are
-// legal in the methods.
-
-unsafe trait UnsafeTrait : Sized {
-    fn foo(self) { }
-}
-
-unsafe impl UnsafeTrait for *mut isize {
-    fn foo(self) {
-        // Unsafe actions are not made legal by taking place in an unsafe trait:
-        *self += 1;
-        //~^ ERROR E0133
-    }
-}
-
-fn main() { }