Skip to content

Commit

Permalink
Fix variable string size problem in transmute test
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Dec 30, 2018
1 parent d178fce commit 7d5f6ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/transmute/main.rs
@@ -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)"



Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/transmute/main.stderr
Expand Up @@ -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
Expand Down

0 comments on commit 7d5f6ce

Please sign in to comment.