From c213b0db2e8e344c419095450dbbdae71afa8c61 Mon Sep 17 00:00:00 2001 From: Ariel Ben-Yehuda Date: Fri, 4 Jan 2019 21:53:00 +0200 Subject: [PATCH] add test for #57162 Fixes #57162. --- src/test/ui/issues/issue-57162.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/ui/issues/issue-57162.rs diff --git a/src/test/ui/issues/issue-57162.rs b/src/test/ui/issues/issue-57162.rs new file mode 100644 index 0000000000000..abe0887e927b5 --- /dev/null +++ b/src/test/ui/issues/issue-57162.rs @@ -0,0 +1,7 @@ +// compile-pass + +trait Foo {} +impl Foo for dyn Send {} + +impl Foo for T {} +fn main() {}