@@ -29,7 +29,27 @@ LL | fn g<A: const T>() {}
29
29
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
30
30
31
31
error[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
33
53
|
34
54
LL | discard! { impl [const] T }
35
55
| ^^^^^^^
@@ -39,7 +59,7 @@ LL | discard! { impl [const] T }
39
59
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
40
60
41
61
error[E0658]: const trait impls are experimental
42
- --> $DIR/feature-gate.rs:19 :17
62
+ --> $DIR/feature-gate.rs:22 :17
43
63
|
44
64
LL | discard! { impl const T }
45
65
| ^^^^^
@@ -58,6 +78,6 @@ LL | #[const_trait]
58
78
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
59
79
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
60
80
61
- error: aborting due to 6 previous errors
81
+ error: aborting due to 8 previous errors
62
82
63
83
For more information about this error, try `rustc --explain E0658`.
0 commit comments