rust/tests/ui/consts/ice-bad-input-type-for-cast-83056.rs

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

8 lines
180 B
Rust
Raw Normal View History

// #83056 ICE "bad input type for cast"
// issue: rust-lang/rust#83056
struct S([bool; f as usize]);
fn f() -> T {}
//~^ ERROR cannot find type `T` in this scope
pub fn main() {}