diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs new file mode 100644 index 000000000..1620f8d5c --- /dev/null +++ b/src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs @@ -0,0 +1,9 @@ +// Basic test for traits inheriting from the builtin kinds, checking +// the type contents of the implementing type (that's not a typaram). + +trait Foo : Send { } + +impl Foo for std::rc::Rc<i8> { } +//~^ ERROR `Rc<i8>` cannot be sent between threads safely + +fn main() { } |