diff options
Diffstat (limited to 'tests/ui/coherence/trait-implementation-coherence-check-57162.rs')
| -rw-r--r-- | tests/ui/coherence/trait-implementation-coherence-check-57162.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/coherence/trait-implementation-coherence-check-57162.rs b/tests/ui/coherence/trait-implementation-coherence-check-57162.rs new file mode 100644 index 00000000000..a57e827ca8b --- /dev/null +++ b/tests/ui/coherence/trait-implementation-coherence-check-57162.rs @@ -0,0 +1,8 @@ +// https://github.com/rust-lang/rust/issues/57162 +//@ check-pass + +trait Foo {} +impl Foo for dyn Send {} + +impl<T: Sync + Sync> Foo for T {} +fn main() {} |
