rust/tests/ui/traits/next-solver/unsize-overflow.rs
2025-10-20 14:35:51 +02:00

8 lines
219 B
Rust

//@ compile-flags: -Znext-solver
#![recursion_limit = "8"]
fn main() {
let _: Box<dyn Send> = Box::new(&&&&&&&1);
//~^ ERROR overflow evaluating the requirement `Box<&&&&&&&i32>: CoerceUnsized<Box<dyn Send>>
}