2025-01-06 11:39:07 +01:00
|
|
|
#![feature(ptr_metadata)]
|
|
|
|
|
#![feature(trivial_bounds)]
|
|
|
|
|
|
|
|
|
|
fn return_str()
|
|
|
|
|
where
|
|
|
|
|
str: std::ptr::Pointee<Metadata = str>,
|
|
|
|
|
{
|
|
|
|
|
[(); { let _a: Option<&str> = None; 0 }];
|
2025-05-28 10:29:08 +00:00
|
|
|
//~^ ERROR the type `str` has an unknown layout
|
2025-01-06 11:39:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|