diff options
Diffstat (limited to 'tests/ui/coherence/coherence-covered-type-parameter.rs')
-rw-r--r-- | tests/ui/coherence/coherence-covered-type-parameter.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/coherence/coherence-covered-type-parameter.rs b/tests/ui/coherence/coherence-covered-type-parameter.rs new file mode 100644 index 000000000..bb95c59d1 --- /dev/null +++ b/tests/ui/coherence/coherence-covered-type-parameter.rs @@ -0,0 +1,14 @@ +// run-pass +#![allow(dead_code)] +// aux-build:coherence_lib.rs + +// pretty-expanded FIXME #23616 + +extern crate coherence_lib as lib; +use lib::Remote; + +struct Foo<T>(T); + +impl<T> Remote for Foo<T> { } + +fn main() { } |