about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/associated-constant-ice.rs
blob: 4bb833795bb167bbdd70c71f9944966e2b28a6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

/// 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);
}