mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
15 lines
339 B
Rust
15 lines
339 B
Rust
// This causes a query cycle due to using `Reveal::All`,
|
|
// in #119821 const eval was changed to always use `Reveal::All`
|
|
//
|
|
// See that PR for more details.
|
|
use std::mem::transmute;
|
|
fn foo() -> impl Sized {
|
|
//~^ ERROR cycle detected when computing type of
|
|
unsafe {
|
|
transmute::<_, u8>(foo());
|
|
}
|
|
0u8
|
|
}
|
|
|
|
fn main() {}
|