summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/strict-coherence-needs-negative-coherence.stderr
blob: b5472928778eb3b13f2863fcd5a8847933cc2b6d (plain)
1
2
3
4
5
6
7
8
9
10
error: to use `strict_coherence` on this trait, the `with_negative_coherence` feature must be enabled
  --> $DIR/strict-coherence-needs-negative-coherence.rs:4:1
   |
LL | #[rustc_strict_coherence]
   | ------------------------- due to this attribute
LL | trait Foo {}
   | ^^^^^^^^^

error: aborting due to previous error