about summary refs log tree commit diff
path: root/src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs
diff options
context:
space:
mode:
authorleonardo.yvens <leoyvens@gmail.com>2017-12-03 10:56:53 -0200
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-01-13 18:48:00 +0300
commit02b5fee7325bc0f1c8adb1dedb4fd617aa9155a3 (patch)
tree04d6cd2a98844a1c8f3f7125fb57efe3df53c7b6 /src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs
parentf93183adb43cff4cc0972ce133ce077f8cae1656 (diff)
downloadrust-02b5fee7325bc0f1c8adb1dedb4fd617aa9155a3.tar.gz
rust-02b5fee7325bc0f1c8adb1dedb4fd617aa9155a3.zip
Adjust tests for removal of `impl Foo for .. {}`
Diffstat (limited to 'src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs')
-rw-r--r--src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs b/src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs
index 6c7928f13f8..61c504d3e1b 100644
--- a/src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs
+++ b/src/test/compile-fail/traits-inductive-overflow-supertrait-oibit.rs
@@ -14,9 +14,7 @@
 
 #![feature(optin_builtin_traits)]
 
-trait Magic: Copy {} //~ ERROR E0568
-#[allow(auto_impl)]
-impl Magic for .. {}
+auto trait Magic: Copy {} //~ ERROR E0568
 
 fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }