summaryrefslogtreecommitdiffstats
path: root/tests/ui/coherence/coherence-default-trait-impl.rs
blob: d57fb4777540394a8c87b9351a0b6f90f815acd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(auto_traits)]
#![feature(negative_impls)]

auto trait MySafeTrait {}

struct Foo;

unsafe impl MySafeTrait for Foo {}
//~^ ERROR E0199

unsafe auto trait MyUnsafeTrait {}

impl MyUnsafeTrait for Foo {}
//~^ ERROR E0200

fn main() {}