rust/tests/ui/lint/trivial-cast-ice.rs

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

13 lines
187 B
Rust
Raw Normal View History

//@ aux-build:trivial-cast-ice.rs
//@ check-pass
// Demonstrates the ICE in #102561
#![deny(trivial_casts)]
extern crate trivial_cast_ice;
fn main() {
trivial_cast_ice::foo!();
}