mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 19:57:02 +00:00
13 lines
237 B
Rust
13 lines
237 B
Rust
#![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() {}
|