mirror of https://github.com/rust-lang/rust.git
31 lines
842 B
Plaintext
31 lines
842 B
Plaintext
error: function has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:7:1
|
|
|
|
|
LL | pub const fn foo() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: trait has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:24:1
|
|
|
|
|
LL | / pub trait Bar {
|
|
LL | |
|
|
LL | | #[stable(feature = "stable", since = "1.0.0")]
|
|
LL | | fn fun();
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: function has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:37:1
|
|
|
|
|
LL | pub const unsafe fn size_of_val<T>(x: *const T) -> usize { 42 }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: associated function has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:16:5
|
|
|
|
|
LL | pub const fn foo() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|