mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 09:27:37 +00:00
22 lines
340 B
Rust
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() {}
|