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-02-13 05:54:00 -05:00
|
|
|
error: implementation has missing const stability attribute
|
2024-06-30 17:08:45 +00:00
|
|
|
--> $DIR/missing-const-stability.rs:29:1
|
2022-02-13 05:54:00 -05:00
|
|
|
|
|
|
|
|
|
LL | / impl const Bar for Foo {
|
|
|
|
|
LL | |
|
|
|
|
|
LL | | fn fun() {}
|
|
|
|
|
LL | | }
|
|
|
|
|
| |_^
|
|
|
|
|
|
2024-10-06 19:59:19 +02:00
|
|
|
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 }
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
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() {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-10-30 18:03:44 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2020-09-25 13:51:52 -07:00
|
|
|
|