Skip to content

Commit

Permalink
Stabilize transmute in constants and statics but not const fn
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 11, 2020
1 parent c41fcad commit 1eb0053
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/ui/missing_const_for_fn/could_be_const.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ LL | | t
LL | | }
| |_^

error: this could be a `const fn`
--> $DIR/could_be_const.rs:48:1
|
LL | / fn sub(x: u32) -> usize {
LL | | unsafe { transmute(&x) }
LL | | }
| |_^

error: this could be a `const fn`
--> $DIR/could_be_const.rs:67:9
|
Expand All @@ -73,5 +65,5 @@ LL | | B
LL | | }
| |_________^

error: aborting due to 9 previous errors
error: aborting due to 8 previous errors

0 comments on commit 1eb0053

Please sign in to comment.