From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../auto-trait-leakage2.stderr | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr (limited to 'src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr') diff --git a/src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr b/src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr new file mode 100644 index 000000000..d7247302d --- /dev/null +++ b/src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr @@ -0,0 +1,26 @@ +error[E0277]: `Rc` cannot be sent between threads safely + --> $DIR/auto-trait-leakage2.rs:21:13 + | +LL | type Foo = impl std::fmt::Debug; + | -------------------- within this `Foo` +... +LL | is_send(m::foo()); + | ------- ^^^^^^^^ `Rc` cannot be sent between threads safely + | | + | required by a bound introduced by this call + | + = help: within `Foo`, the trait `Send` is not implemented for `Rc` +note: required because it appears within the type `Foo` + --> $DIR/auto-trait-leakage2.rs:7:16 + | +LL | type Foo = impl std::fmt::Debug; + | ^^^^^^^^^^^^^^^^^^^^ +note: required by a bound in `is_send` + --> $DIR/auto-trait-leakage2.rs:16:15 + | +LL | fn is_send(_: T) {} + | ^^^^ required by this bound in `is_send` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3