blob: 87e100166a298d27aade47bb167d23dbbcff9dd4 [file] [log] [blame] [edit]
//@ check-pass
//@ compile-flags: --crate-type=lib
#![feature(sized_hierarchy)]
// Test demonstrating that elaboration of sizedness bounds works in the simplest cases.
trait Trait {}
fn f<T: Trait + std::marker::PointeeSized>() {
require_metasized::<T>();
}
fn require_metasized<T: std::marker::MetaSized>() {}