//@ normalize-stderr-test: "\d+ bits" -> "N bits" use std::mem; use std::marker::PhantomData; trait Foo { type Error; } struct Bar { stream: PhantomData, } fn foo(x: [usize; 2]) -> Bar { unsafe { mem::transmute(x) } //~^ ERROR cannot transmute between types of different sizes, or dependently-sized types } fn main() {}