mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
30 lines
804 B
Plaintext
30 lines
804 B
Plaintext
error: function has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:7:1
|
|
|
|
|
LL | pub const fn foo() {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:29:1
|
|
|
|
|
LL | / impl const Bar for Foo {
|
|
LL | |
|
|
LL | | fn fun() {}
|
|
LL | | }
|
|
| |_^
|
|
|
|
error: function has missing const stability attribute
|
|
--> $DIR/missing-const-stability.rs:36: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
|
|
|