blob: 54f339711d5c12fb603017ac957023a44912bf1b [file] [log] [blame]
#![feature(ptr_metadata)]
#![feature(trivial_bounds)]
fn return_str()
where
str: std::ptr::Pointee<Metadata = str>,
{
[(); { let _a: Option<&str> = None; 0 }];
//~^ ERROR the type `str` has an unknown layout
}
fn main() {}