1 // Tests that an `&` pointer to something inherently mutable is itself
2 // to be considered mutable.
4 #![feature(negative_impls)]
9 impl !Sync for NoSync {}
11 enum Foo { A(NoSync) }
13 fn bar<T: Sync>(_: T) {}
16 let x = Foo::A(NoSync);
18 //~^ ERROR `NoSync` cannot be shared between threads safely [E0277]