rust/tests/ui/auto-traits/auto-is-contextual.rs
2024-02-16 20:02:50 +00:00

19 lines
202 B
Rust

//@ run-pass
#![allow(path_statements)]
#![allow(dead_code)]
macro_rules! auto {
() => (struct S;)
}
auto!();
fn auto() {}
fn main() {
auto();
let auto = 10;
auto;
auto as u8;
}