rust/tests/crashes/134838.rs

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

15 lines
206 B
Rust
Raw Normal View History

2025-01-03 09:52:14 +01:00
//@ known-bug: #134838
#![feature(type_ascription)]
#![allow(dead_code)]
struct Ty(());
fn mk() -> impl Sized {
if false {
let _ = type_ascribe!(mk(), Ty).0;
}
Ty(())
}
fn main() {}