//@ run-pass #![feature(unsize, coerce_unsized)] // Verfies that PhantomData is ignored for DST coercions use std::marker::{Unsize, PhantomData}; use std::ops::CoerceUnsized; struct MyRc { _ptr: *const T, _boo: PhantomData, } impl, U: ?Sized> CoerceUnsized> for MyRc{ } fn main() { let data = [1, 2, 3]; let iter = data.iter(); let x = MyRc { _ptr: &iter, _boo: PhantomData }; let _y: MyRc> = x; }