Fix variable string size problem in transmute test
This commit is contained in:
parent
d178fce5fc
commit
7d5f6ceef0
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// normalize-stderr-32bit: "&str \(64 bits\)" -> "&str ($$STR bits)"
|
// normalize-stderr-32bit: "`&str` \(64 bits\)" -> "`&str` ($$STR bits)"
|
||||||
// normalize-stderr-64bit: "&str \(128 bits\)" -> "&str ($$STR bits)"
|
// normalize-stderr-64bit: "`&str` \(128 bits\)" -> "`&str` ($$STR bits)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
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)
|
= note: target type: `u8` (8 bits)
|
||||||
|
|
||||||
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue