mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00
13 lines
236 B
Rust
13 lines
236 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 evaluation of constant value failed
|
||
|
}
|
||
|
|
||
|
fn main() {}
|