1 // Unit test for the "user substitutions" that are annotated on each
4 // compile-flags:-Zverbose
7 #![feature(rustc_attrs)]
9 struct SomeStruct<T> { t: T }
11 #[rustc_dump_user_substs]
13 SomeStruct { t: 22 }; // Nothing given, no annotation.
15 SomeStruct::<_> { t: 22 }; // Nothing interesting given, no annotation.
17 SomeStruct::<u32> { t: 22 }; // No lifetime bounds given.
19 SomeStruct::<&'static u32> { t: &22 }; //~ ERROR [&ReStatic u32]