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