diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/no_send-rc.stderr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/no_send-rc.stderr b/src/test/ui/no_send-rc.stderr new file mode 100644 index 000000000..ce25da559 --- /dev/null +++ b/src/test/ui/no_send-rc.stderr @@ -0,0 +1,18 @@ +error[E0277]: `Rc<{integer}>` cannot be sent between threads safely + --> $DIR/no_send-rc.rs:7:9 + | +LL | bar(x); + | --- ^ `Rc<{integer}>` cannot be sent between threads safely + | | + | required by a bound introduced by this call + | + = help: the trait `Send` is not implemented for `Rc<{integer}>` +note: required by a bound in `bar` + --> $DIR/no_send-rc.rs:3:11 + | +LL | fn bar<T: Send>(_: T) {} + | ^^^^ required by this bound in `bar` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |