summaryrefslogtreecommitdiffstats
path: root/tests/ui/auto-traits/auto-is-contextual.rs
blob: a2ddd5374c08bdb01c08b72ee28b6c23a7252211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
}