]> git.lizzy.rs Git - rust.git/blob - tests/run-pass/associated-constant-ice.rs
Merge pull request #1705 from Manishearth/op_ref
[rust.git] / tests / run-pass / associated-constant-ice.rs
1 #![feature(associated_consts)]
2 #![feature(plugin)]
3 #![plugin(clippy)]
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 }