@@ -6,14 +6,14 @@ LL | const fn into_inner(self) -> T { self.0 }
66 | |
77 | constant functions cannot evaluate destructors
88
9- error[E0723 ]: mutable references in const fn are unstable
9+ error[E0658 ]: mutable references are not allowed in constant functions
1010 --> $DIR/min_const_fn.rs:39:36
1111 |
1212LL | const fn get_mut(&mut self) -> &mut T { &mut self.0 }
1313 | ^^^^^^
1414 |
15- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
16- = help: add `#![feature(const_fn )]` to the crate attributes to enable
15+ = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349 > for more information
16+ = help: add `#![feature(const_mut_refs )]` to the crate attributes to enable
1717
1818error[E0493]: destructors cannot be evaluated at compile-time
1919 --> $DIR/min_const_fn.rs:44:28
@@ -23,14 +23,14 @@ LL | const fn into_inner_lt(self) -> T { self.0 }
2323 | |
2424 | constant functions cannot evaluate destructors
2525
26- error[E0723 ]: mutable references in const fn are unstable
26+ error[E0658 ]: mutable references are not allowed in constant functions
2727 --> $DIR/min_const_fn.rs:46:42
2828 |
2929LL | const fn get_mut_lt(&'a mut self) -> &mut T { &mut self.0 }
3030 | ^^^^^^
3131 |
32- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
33- = help: add `#![feature(const_fn )]` to the crate attributes to enable
32+ = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349 > for more information
33+ = help: add `#![feature(const_mut_refs )]` to the crate attributes to enable
3434
3535error[E0493]: destructors cannot be evaluated at compile-time
3636 --> $DIR/min_const_fn.rs:51:27
@@ -40,23 +40,23 @@ LL | const fn into_inner_s(self) -> T { self.0 }
4040 | |
4141 | constant functions cannot evaluate destructors
4242
43- error[E0723 ]: mutable references in const fn are unstable
43+ error[E0658 ]: mutable references are not allowed in constant functions
4444 --> $DIR/min_const_fn.rs:53:38
4545 |
4646LL | const fn get_mut_s(&mut self) -> &mut T { &mut self.0 }
4747 | ^^^^^^
4848 |
49- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
50- = help: add `#![feature(const_fn )]` to the crate attributes to enable
49+ = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349 > for more information
50+ = help: add `#![feature(const_mut_refs )]` to the crate attributes to enable
5151
52- error[E0723 ]: mutable references in const fn are unstable
52+ error[E0658 ]: mutable references are not allowed in constant functions
5353 --> $DIR/min_const_fn.rs:58:39
5454 |
5555LL | const fn get_mut_sq(&mut self) -> &mut T { &mut self.0 }
5656 | ^^^^^^
5757 |
58- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
59- = help: add `#![feature(const_fn )]` to the crate attributes to enable
58+ = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349 > for more information
59+ = help: add `#![feature(const_mut_refs )]` to the crate attributes to enable
6060
6161error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
6262 --> $DIR/min_const_fn.rs:76:16
@@ -164,14 +164,14 @@ LL | const fn foo30_2_with_unsafe(x: *mut u32) -> usize { unsafe { x as usize }
164164 = note: see issue #51910 <https://github.com/rust-lang/rust/issues/51910> for more information
165165 = help: add `#![feature(const_raw_ptr_to_usize_cast)]` to the crate attributes to enable
166166
167- error[E0723 ]: mutable references in const fn are unstable
167+ error[E0658 ]: mutable references are not allowed in constant functions
168168 --> $DIR/min_const_fn.rs:101:14
169169 |
170170LL | const fn inc(x: &mut i32) { *x += 1 }
171171 | ^
172172 |
173- = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563 > for more information
174- = help: add `#![feature(const_fn )]` to the crate attributes to enable
173+ = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349 > for more information
174+ = help: add `#![feature(const_mut_refs )]` to the crate attributes to enable
175175
176176error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
177177 --> $DIR/min_const_fn.rs:110:6
0 commit comments