summaryrefslogtreecommitdiffstats
path: root/src/test/ui/stability-attribute/missing-const-stability.stderr
blob: 4cfbe152891bac36b2e9f01e0a926b11ce87859e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: function has missing const stability attribute
  --> $DIR/missing-const-stability.rs:6:1
   |
LL | pub const fn foo() {}
   | ^^^^^^^^^^^^^^^^^^^^^

error: implementation has missing const stability attribute
  --> $DIR/missing-const-stability.rs:28:1
   |
LL | / impl const Bar for Foo {
LL | |
LL | |     fn fun() {}
LL | | }
   | |_^

error: associated function has missing const stability attribute
  --> $DIR/missing-const-stability.rs:15:5
   |
LL |     pub const fn foo() {}
   |     ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors