summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/associated-constant-ice.rs
blob: 948deba3ea6e3cb766a37360eba6816ed5ddfd0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Test for https://github.com/rust-lang/rust-clippy/issues/1698

pub trait Trait {
    const CONSTANT: u8;
}

impl Trait for u8 {
    const CONSTANT: u8 = 2;
}

fn main() {
    println!("{}", u8::CONSTANT * 10);
}