]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/strict-coherence-needs-negative-coherence.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / coherence / strict-coherence-needs-negative-coherence.stderr
1 error: to use `strict_coherence` on this trait, the `with_negative_coherence` feature must be enabled
2   --> $DIR/strict-coherence-needs-negative-coherence.rs:4:1
3    |
4 LL | #[rustc_strict_coherence]
5    | ------------------------- due to this attribute
6 LL | trait Foo {}
7    | ^^^^^^^^^
8
9 error: aborting due to previous error
10