summaryrefslogtreecommitdiffstats
path: root/tests/ui/builtin-superkinds/builtin-superkinds-simple.rs
blob: 1620f8d5cf10e48f2db48b932eee11cdf5997081 (plain)
1
2
3
4
5
6
7
8
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() { }