diff --git a/src/test/ui/transmute/main.rs b/src/test/ui/transmute/main.rs index dbad10c1c19..ea233a47a78 100644 --- a/src/test/ui/transmute/main.rs +++ b/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)" diff --git a/src/test/ui/transmute/main.stderr b/src/test/ui/transmute/main.stderr index a152268c6d8..f4e88fc860a 100644 --- a/src/test/ui/transmute/main.stderr +++ b/src/test/ui/transmute/main.stderr @@ -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