]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/mir_call_with_associated_type.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / test / run-pass / mir_call_with_associated_type.rs
index 08401c275a52cff5dbbba98d714feae9e86a67de..935d0e58985d7c683160a10dbc6c7614ed1e1dc1 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(rustc_attrs)]
-
 trait Trait {
     type Type;
 }
@@ -18,12 +16,10 @@ impl<'a> Trait for &'a () {
     type Type = u32;
 }
 
-#[rustc_mir]
 fn foo<'a>(t: <&'a () as Trait>::Type) -> <&'a () as Trait>::Type {
     t
 }
 
-#[rustc_mir]
 fn main() {
     assert_eq!(foo(4), 4);
 }