]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/associated-constant-ice.rs
Rollup merge of #5410 - dtolnay:trivially, r=flip1995
[rust.git] / tests / ui / crashes / associated-constant-ice.rs
1 // run-pass
2
3 /// Test for https://github.com/rust-lang/rust-clippy/issues/1698
4
5 pub trait Trait {
6     const CONSTANT: u8;
7 }
8
9 impl Trait for u8 {
10     const CONSTANT: u8 = 2;
11 }
12
13 fn main() {
14     println!("{}", u8::CONSTANT * 10);
15 }