]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stability-attribute/missing-const-stability.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / stability-attribute / missing-const-stability.stderr
1 error: function has missing const stability attribute
2   --> $DIR/missing-const-stability.rs:6:1
3    |
4 LL | pub const fn foo() {}
5    | ^^^^^^^^^^^^^^^^^^^^^
6
7 error: associated function has missing const stability attribute
8   --> $DIR/missing-const-stability.rs:15:5
9    |
10 LL |     pub const fn foo() {}
11    |     ^^^^^^^^^^^^^^^^^^^^^
12
13 error: implementation has missing const stability attribute
14   --> $DIR/missing-const-stability.rs:27:1
15    |
16 LL | / impl const Bar for Foo {
17 LL | |
18 LL | |     fn fun() {}
19 LL | | }
20    | |_^
21
22 error: aborting due to 3 previous errors
23