2021-11-18 02:06:17 +00:00
|
|
|
error: function has missing const stability attribute
|
2024-06-30 17:08:45 +00:00
|
|
|
--> $DIR/missing-const-stability.rs:7:1
|
2020-09-25 20:51:52 +00:00
|
|
|
|
|
|
|
|
LL | pub const fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2025-01-12 20:52:30 +00:00
|
|
|
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 | | }
|
|
|
|
| |_^
|
|
|
|
|
2024-10-06 17:59:19 +00:00
|
|
|
error: function has missing const stability attribute
|
2025-01-12 20:52:30 +00:00
|
|
|
--> $DIR/missing-const-stability.rs:37:1
|
2024-10-06 17:59:19 +00:00
|
|
|
|
|
|
|
|
LL | pub const unsafe fn size_of_val<T>(x: *const T) -> usize { 42 }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-07-03 13:28:57 +00:00
|
|
|
error: associated function has missing const stability attribute
|
2024-06-30 17:08:45 +00:00
|
|
|
--> $DIR/missing-const-stability.rs:16:5
|
2022-07-03 13:28:57 +00:00
|
|
|
|
|
|
|
|
LL | pub const fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2025-01-12 20:52:30 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2020-09-25 20:51:52 +00:00
|
|
|
|