]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/issue-1255.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / issue-1255.rs
CommitLineData
f20569fa
XL
1// Test for issue #1255
2// Default annotation incorrectly removed on associated types
3#![feature(specialization)]
4
5trait Trait {
6 type Type;
7}
8impl<T> Trait for T {
9 default type Type = u64; // 'default' should not be removed
10}