diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-1255.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/issue-1255.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-1255.rs b/src/tools/rustfmt/tests/target/issue-1255.rs new file mode 100644 index 000000000..2d4633844 --- /dev/null +++ b/src/tools/rustfmt/tests/target/issue-1255.rs @@ -0,0 +1,10 @@ +// Test for issue #1255 +// Default annotation incorrectly removed on associated types +#![feature(specialization)] + +trait Trait { + type Type; +} +impl<T> Trait for T { + default type Type = u64; // 'default' should not be removed +} |