parent
21dfd24c4b
commit
18f115c2bb
@ -15,7 +15,7 @@ trait Trait<'a> {
|
||||
|
||||
fn foo<'a, T: Trait<'a>>(value: T::A) {
|
||||
let new: T::B = unsafe { std::mem::transmute(value) };
|
||||
//~^ ERROR: cannot transmute to or from a type that contains type parameters in its interior [E0139]
|
||||
//~^ ERROR: cannot transmute to or from a type that contains unsubstituted type parameters [E0139]
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user