rust/tests/crashes/135528.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
300 B
Rust
Raw Permalink Normal View History

2025-01-25 22:30:38 +01:00
//@ known-bug: #135528
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
#![feature(type_alias_impl_trait)]
type Tait = impl Copy;
fn set(x: &isize) -> isize {
*x
}
#[define_opaque(Tait)]
2025-01-25 22:30:38 +01:00
fn d(x: Tait) {
set(x);
}
#[define_opaque(Tait)]
2025-01-25 22:30:38 +01:00
fn other_define() -> Tait {
()
}
fn main() {}