summaryrefslogtreecommitdiffstats
path: root/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr')
-rw-r--r--src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr b/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
new file mode 100644
index 000000000..492316f00
--- /dev/null
+++ b/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
@@ -0,0 +1,37 @@
+error[E0277]: `T` cannot be sent between threads safely
+ --> $DIR/builtin-superkinds-double-superkind.rs:6:24
+ |
+LL | impl <T: Sync+'static> Foo for (T,) { }
+ | ^^^ `T` cannot be sent between threads safely
+ |
+ = note: required because it appears within the type `(T,)`
+note: required by a bound in `Foo`
+ --> $DIR/builtin-superkinds-double-superkind.rs:4:13
+ |
+LL | trait Foo : Send+Sync { }
+ | ^^^^ required by this bound in `Foo`
+help: consider further restricting this bound
+ |
+LL | impl <T: Sync+'static + std::marker::Send> Foo for (T,) { }
+ | +++++++++++++++++++
+
+error[E0277]: `T` cannot be shared between threads safely
+ --> $DIR/builtin-superkinds-double-superkind.rs:9:16
+ |
+LL | impl <T: Send> Foo for (T,T) { }
+ | ^^^ `T` cannot be shared between threads safely
+ |
+ = note: required because it appears within the type `(T, T)`
+note: required by a bound in `Foo`
+ --> $DIR/builtin-superkinds-double-superkind.rs:4:18
+ |
+LL | trait Foo : Send+Sync { }
+ | ^^^^ required by this bound in `Foo`
+help: consider further restricting this bound
+ |
+LL | impl <T: Send + std::marker::Sync> Foo for (T,T) { }
+ | +++++++++++++++++++
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0277`.