2024-06-21 12:22:29 +00:00
|
|
|
warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
|
|
--> $DIR/missing-const-stability.rs:2:30
|
|
|
|
|
|
|
|
|
LL | #![feature(const_trait_impl, effects)]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
2021-11-17 21:06:17 -05:00
|
|
|
error: function has missing const stability attribute
|
2021-11-17 21:08:16 -05:00
|
|
|
--> $DIR/missing-const-stability.rs:6:1
|
2020-09-25 13:51:52 -07:00
|
|
|
|
|
|
|
|
LL | pub const fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-02-13 05:54:00 -05:00
|
|
|
error: implementation has missing const stability attribute
|
2022-08-28 06:27:31 +00:00
|
|
|
--> $DIR/missing-const-stability.rs:28:1
|
2022-02-13 05:54:00 -05:00
|
|
|
|
|
|
|
|
LL | / impl const Bar for Foo {
|
|
|
|
LL | |
|
|
|
|
LL | | fn fun() {}
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
2022-07-03 15:28:57 +02:00
|
|
|
error: associated function has missing const stability attribute
|
|
|
|
--> $DIR/missing-const-stability.rs:15:5
|
|
|
|
|
|
|
|
|
LL | pub const fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-06-21 12:22:29 +00:00
|
|
|
error: aborting due to 3 previous errors; 1 warning emitted
|
2020-09-25 13:51:52 -07:00
|
|
|
|