From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../builtin-superkinds-double-superkind.stderr | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr (limited to 'tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr') diff --git a/tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr new file mode 100644 index 000000000..592aa4369 --- /dev/null +++ b/tests/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:32 + | +LL | impl 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 Foo for (T,) { } + | +++++++++++++++++++ + +error[E0277]: `T` cannot be shared between threads safely + --> $DIR/builtin-superkinds-double-superkind.rs:9:24 + | +LL | impl 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 Foo for (T,T) { } + | +++++++++++++++++++ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3