diff options
| author | Ralf Jung <post@ralfj.de> | 2018-11-12 12:19:35 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-11-15 10:59:42 +0100 |
| commit | b8915f2ba83d2d7968a1615a086bde0d4bf20706 (patch) | |
| tree | dd0ec7badbd2aae2531eef623d3644ed08caa807 | |
| parent | a3770c2547dd163e0f5bfa07ec23b8b461fbe145 (diff) | |
| download | rust-b8915f2ba83d2d7968a1615a086bde0d4bf20706.tar.gz rust-b8915f2ba83d2d7968a1615a086bde0d4bf20706.zip | |
fix other affected tests
| -rw-r--r-- | src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr b/src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr index 03de0efd073..a4c22841614 100644 --- a/src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr +++ b/src/test/ui/issues/issue-52023-array-size-pointer-cast.stderr @@ -10,7 +10,7 @@ error[E0080]: it is undefined behavior to use this value --> $DIR/issue-52023-array-size-pointer-cast.rs:12:17 | LL | let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer, but expected initialized plain bits + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered a pointer, but expected initialized plain (non-pointer) bytes | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior |
