mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 12:48:20 +00:00
13 lines
238 B
Rust
13 lines
238 B
Rust
#![feature(trivial_bounds)]
|
|
|
|
fn return_str()
|
|
where
|
|
str: Sized,
|
|
{
|
|
[(); { let _a: Option<str> = None; 0 }];
|
|
//~^ ERROR entering unreachable code
|
|
//~| NOTE evaluation of `return_str::{constant#0}` failed here
|
|
}
|
|
|
|
fn main() {}
|