@@ -29,7 +29,27 @@ LL | fn g<A: const T>() {}
2929 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3030
3131error[E0658]: const trait impls are experimental
32- --> $DIR/feature-gate.rs:18:17
32+ --> $DIR/feature-gate.rs:16:1
33+ |
34+ LL | const trait Trait {}
35+ | ^^^^^
36+ |
37+ = note: see issue #143874 <https://github.com/rust-lang/rust/issues/143874> for more information
38+ = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
39+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
40+
41+ error[E0658]: const trait impls are experimental
42+ --> $DIR/feature-gate.rs:17:15
43+ |
44+ LL | #[cfg(false)] const trait Trait {}
45+ | ^^^^^
46+ |
47+ = note: see issue #143874 <https://github.com/rust-lang/rust/issues/143874> for more information
48+ = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
49+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
50+
51+ error[E0658]: const trait impls are experimental
52+ --> $DIR/feature-gate.rs:21:17
3353 |
3454LL | discard! { impl [const] T }
3555 | ^^^^^^^
@@ -39,7 +59,7 @@ LL | discard! { impl [const] T }
3959 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4060
4161error[E0658]: const trait impls are experimental
42- --> $DIR/feature-gate.rs:19 :17
62+ --> $DIR/feature-gate.rs:22 :17
4363 |
4464LL | discard! { impl const T }
4565 | ^^^^^
@@ -58,6 +78,6 @@ LL | #[const_trait]
5878 = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
5979 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
6080
61- error: aborting due to 6 previous errors
81+ error: aborting due to 8 previous errors
6282
6383For more information about this error, try `rustc --explain E0658`.
0 commit comments