@@ -6,14 +6,14 @@ LL | const fn into_inner(self) -> T { self.0 }
6
6
| |
7
7
| constant functions cannot evaluate destructors
8
8
9
- error[E0723 ]: mutable references in const fn are unstable
9
+ error[E0658 ]: mutable references are not allowed in constant functions
10
10
--> $DIR/min_const_fn.rs:39:36
11
11
|
12
12
LL | const fn get_mut(&mut self) -> &mut T { &mut self.0 }
13
13
| ^^^^^^
14
14
|
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
17
17
18
18
error[E0493]: destructors cannot be evaluated at compile-time
19
19
--> $DIR/min_const_fn.rs:44:28
@@ -23,14 +23,14 @@ LL | const fn into_inner_lt(self) -> T { self.0 }
23
23
| |
24
24
| constant functions cannot evaluate destructors
25
25
26
- error[E0723 ]: mutable references in const fn are unstable
26
+ error[E0658 ]: mutable references are not allowed in constant functions
27
27
--> $DIR/min_const_fn.rs:46:42
28
28
|
29
29
LL | const fn get_mut_lt(&'a mut self) -> &mut T { &mut self.0 }
30
30
| ^^^^^^
31
31
|
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
34
34
35
35
error[E0493]: destructors cannot be evaluated at compile-time
36
36
--> $DIR/min_const_fn.rs:51:27
@@ -40,23 +40,23 @@ LL | const fn into_inner_s(self) -> T { self.0 }
40
40
| |
41
41
| constant functions cannot evaluate destructors
42
42
43
- error[E0723 ]: mutable references in const fn are unstable
43
+ error[E0658 ]: mutable references are not allowed in constant functions
44
44
--> $DIR/min_const_fn.rs:53:38
45
45
|
46
46
LL | const fn get_mut_s(&mut self) -> &mut T { &mut self.0 }
47
47
| ^^^^^^
48
48
|
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
51
51
52
- error[E0723 ]: mutable references in const fn are unstable
52
+ error[E0658 ]: mutable references are not allowed in constant functions
53
53
--> $DIR/min_const_fn.rs:58:39
54
54
|
55
55
LL | const fn get_mut_sq(&mut self) -> &mut T { &mut self.0 }
56
56
| ^^^^^^
57
57
|
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
60
60
61
61
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
62
62
--> $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 }
164
164
= note: see issue #51910 <https://github.com/rust-lang/rust/issues/51910> for more information
165
165
= help: add `#![feature(const_raw_ptr_to_usize_cast)]` to the crate attributes to enable
166
166
167
- error[E0723 ]: mutable references in const fn are unstable
167
+ error[E0658 ]: mutable references are not allowed in constant functions
168
168
--> $DIR/min_const_fn.rs:101:14
169
169
|
170
170
LL | const fn inc(x: &mut i32) { *x += 1 }
171
171
| ^
172
172
|
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
175
175
176
176
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
177
177
--> $DIR/min_const_fn.rs:110:6
0 commit comments