#![allow(dead_code)]
-use std::marker;
+use std::marker::PhantomData;
#[derive(Copy)]
struct Foo<T> { x: T }
type Ty<'tcx> = &'tcx TyS<'tcx>;
enum TyS<'tcx> {
- Boop(marker::InvariantLifetime<'tcx>)
+ Boop(PhantomData<*mut &'tcx ()>)
}
+#[derive(Copy)]
enum Bar<'tcx> {
Baz(Foo<Ty<'tcx>>)
}
-impl<'tcx> Copy for Bar<'tcx> { }
-
fn main() { }