blob: ece1702679d0030b8a438a55b958d138b28e83a2 [file] [log] [blame]
#![feature(sized_hierarchy)]
use std::marker::PointeeSized;
type Foo = dyn PointeeSized;
//~^ ERROR `PointeeSized` cannot be used with trait objects
fn foo(f: &Foo) {}
fn main() {
foo(&());
let x = main;
let y: Box<dyn PointeeSized> = x;
//~^ ERROR `PointeeSized` cannot be used with trait objects
}