1 // Auto-trait-based version of #29859, supertrait version. Test that using
2 // a simple auto trait `..` impl alone still doesn't allow arbitrary bounds
5 #![feature(auto_traits)]
6 #![feature(negative_impls)]
8 auto trait Magic: Copy {} //~ ERROR E0568
10 fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
16 let (a, b) = copy(NoClone); //~ ERROR
17 println!("{:?} {:?}", a, b);