mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 11:48:06 +00:00
17 lines
336 B
Rust
17 lines
336 B
Rust
// Used to cause a query cycle due to using `TypingEnv::PostAnalysis`,
|
|
// in #119821 const eval was changed to always use this mode.
|
|
//
|
|
//@ check-pass
|
|
|
|
use std::mem::transmute;
|
|
|
|
fn foo() -> impl Sized {
|
|
//~^ WARN function cannot return without recursing
|
|
unsafe {
|
|
transmute::<_, u8>(foo());
|
|
}
|
|
0u8
|
|
}
|
|
|
|
fn main() {}
|