rust/tests/ui/coherence/strict-coherence-needs-negative-coherence.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
185 B
Rust
Raw Normal View History

#![feature(rustc_attrs)]
#[rustc_strict_coherence]
trait Foo {}
//~^ ERROR to use `strict_coherence` on this trait, the `with_negative_coherence` feature must be enabled
fn main() {}