mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00

- `check-pass` test for a MRE of #135020 - fail test for #135138 - switch to `TooGeneric` for checking CMSE fn signatures - switch to `TooGeneric` for compute `SizeSkeleton` (for transmute) - fix broken tests
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() {}
|