summaryrefslogtreecommitdiffstats
path: root/src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr')
-rw-r--r--src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr b/src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
new file mode 100644
index 000000000..3ec0b907d
--- /dev/null
+++ b/src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
@@ -0,0 +1,19 @@
+error[E0277]: `T` cannot be sent between threads safely
+ --> $DIR/builtin-superkinds-typaram-not-send.rs:5:24
+ |
+LL | impl <T: Sync+'static> Foo for T { }
+ | ^^^ `T` cannot be sent between threads safely
+ |
+note: required by a bound in `Foo`
+ --> $DIR/builtin-superkinds-typaram-not-send.rs:3:13
+ |
+LL | trait Foo : Send { }
+ | ^^^^ required by this bound in `Foo`
+help: consider further restricting this bound
+ |
+LL | impl <T: Sync+'static + std::marker::Send> Foo for T { }
+ | +++++++++++++++++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.