rust/tests/crashes/120016.rs
beepster4096 413f095a85 this ice now requires -Zvalidate-mir
also slightly minimized the test
2025-09-26 15:37:19 -07:00

22 lines
340 B
Rust

//@ known-bug: #120016
//@ compile-flags: -Zvalidate-mir
//@ edition: 2021
#![feature(type_alias_impl_trait)]
struct Bug {
V1: [(); {
type F = impl Sized;
#[define_opaque(F)]
fn concrete_use() -> F {
//~^ ERROR
1i32
}
let f: F = 0u32;
1
}],
}
fn main() {}