about summary refs log tree commit diff
path: root/src/test/ui/coherence/coherence-default-trait-impl.rs
blob: 4115ba34e17b2fca9f504336b254eeba2014dd6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(optin_builtin_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() {}