1 error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
2 --> $DIR/rustc-const-stability-require-const.rs:7:1
4 LL | #[rustc_const_unstable(feature = "const_foo", issue = "none")]
5 | -------------------------------------------------------------- attribute specified here
9 help: make the function or method const
10 --> $DIR/rustc-const-stability-require-const.rs:7:1
15 error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
16 --> $DIR/rustc-const-stability-require-const.rs:12:1
18 LL | #[rustc_const_stable(feature = "const_bar", since = "1.0.0")]
19 | ------------------------------------------------------------- attribute specified here
23 help: make the function or method const
24 --> $DIR/rustc-const-stability-require-const.rs:12:1
29 error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
30 --> $DIR/rustc-const-stability-require-const.rs:21:5
32 LL | #[rustc_const_unstable(feature = "const_salad", issue = "none")]
33 | ---------------------------------------------------------------- attribute specified here
34 LL | pub fn salad(&self) -> &'static str { "mmmmmm" }
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 help: make the function or method const
38 --> $DIR/rustc-const-stability-require-const.rs:21:5
40 LL | pub fn salad(&self) -> &'static str { "mmmmmm" }
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
44 --> $DIR/rustc-const-stability-require-const.rs:26:5
46 LL | #[rustc_const_unstable(feature = "const_roasted", issue = "none")]
47 | ------------------------------------------------------------------ attribute specified here
48 LL | pub fn roasted(&self) -> &'static str { "mmmmmmmmmm" }
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 help: make the function or method const
52 --> $DIR/rustc-const-stability-require-const.rs:26:5
54 LL | pub fn roasted(&self) -> &'static str { "mmmmmmmmmm" }
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
58 --> $DIR/rustc-const-stability-require-const.rs:32:1
60 LL | #[rustc_const_stable(feature = "const_bar", since = "1.0.0")]
61 | ------------------------------------------------------------- attribute specified here
62 LL | pub extern "C" fn bar_c() {}
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^
65 help: make the function or method const
66 --> $DIR/rustc-const-stability-require-const.rs:32:1
68 LL | pub extern "C" fn bar_c() {}
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^
71 error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const`
72 --> $DIR/rustc-const-stability-require-const.rs:37:1
74 LL | #[rustc_const_unstable(feature = "const_foo", issue = "none")]
75 | -------------------------------------------------------------- attribute specified here
76 LL | pub extern "C" fn foo_c() {}
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^
79 help: make the function or method const
80 --> $DIR/rustc-const-stability-require-const.rs:37:1
82 LL | pub extern "C" fn foo_c() {}
83 | ^^^^^^^^^^^^^^^^^^^^^^^^^
85 error: aborting due to 6 previous errors