]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-1255.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / issue-1255.rs
1 // Test for issue #1255
2 // Default annotation incorrectly removed on associated types
3 #![feature(specialization)]
4
5 trait Trait {
6     type Type;
7 }
8 impl<T> Trait for T {
9     default type Type = u64; // 'default' should not be removed
10 }