2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2016-06-01 16:30:13 +02:00
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
2016-10-12 16:53:57 +02:00
|
|
|
trait Bar { }
|
|
|
|
|
unsafe impl Bar for Foo { } //~ ERROR implementing the trait `Bar` is not unsafe [E0199]
|
2016-06-01 16:30:13 +02:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
}
|