Rollup merge of #27202 - apasel422:issue-21174, r=alexcrichton

This commit is contained in:
Steve Klabnik 2015-07-22 12:56:52 -04:00
commit 5f04b1b384

View File

@ -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() { }