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