diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-08-30 02:01:04 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-07-11 09:22:17 +0200 |
| commit | 1eb0053dcddcb55e46f8ba5b4083f7a3f5872be0 (patch) | |
| tree | e8e1e76b6a5e00623de9bb9e4a50f18f7f56cc18 | |
| parent | c41fcad90843b4bff2209618663a2ed38c50a7f9 (diff) | |
| download | rust-1eb0053dcddcb55e46f8ba5b4083f7a3f5872be0.tar.gz rust-1eb0053dcddcb55e46f8ba5b4083f7a3f5872be0.zip | |
Stabilize `transmute` in constants and statics but not const fn
| -rw-r--r-- | tests/ui/missing_const_for_fn/could_be_const.stderr | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/ui/missing_const_for_fn/could_be_const.stderr b/tests/ui/missing_const_for_fn/could_be_const.stderr index 8dde56cd79f..74d32b8a1aa 100644 --- a/tests/ui/missing_const_for_fn/could_be_const.stderr +++ b/tests/ui/missing_const_for_fn/could_be_const.stderr @@ -58,14 +58,6 @@ 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 | LL | / pub fn b(self, a: &A) -> B { @@ -73,5 +65,5 @@ LL | | B LL | | } | |_________^ -error: aborting due to 9 previous errors +error: aborting due to 8 previous errors |
