Fix variable string size problem in transmute test

This commit is contained in:
varkor 2018-12-30 09:56:59 +00:00
parent d178fce5fc
commit 7d5f6ceef0
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// normalize-stderr-32bit: "&str \(64 bits\)" -> "&str ($$STR bits)"
// normalize-stderr-64bit: "&str \(128 bits\)" -> "&str ($$STR bits)"
// normalize-stderr-32bit: "`&str` \(64 bits\)" -> "`&str` ($$STR bits)"
// normalize-stderr-64bit: "`&str` \(128 bits\)" -> "`&str` ($$STR bits)"

View File

@ -22,7 +22,7 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
LL | let x: u8 = transmute("test"); //~ ERROR cannot transmute between types of different sizes
| ^^^^^^^^^
|
= note: source type: `&str` (128 bits)
= note: source type: `&str` ($STR bits)
= note: target type: `u8` (8 bits)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types