Default annotation incorrectly removed on associated type.
This commit is contained in:
David Wickes 2017-02-23 22:18:09 +00:00
parent 7ad352239a
commit 4f91f02ad1

View File

@ -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
}