]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/restrict-type-argument.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / suggestions / restrict-type-argument.stderr
index 551a7c5060fc743e9b677ab3a67d63e0954e3fa0..01c2de7986419bed90a66cdce1f833ae9c503c4f 100644 (file)
@@ -85,8 +85,8 @@ LL | fn is_send<T: Send>(val: T) {}
    |               ^^^^ required by this bound in `is_send`
 help: consider further restricting this bound
    |
-LL | fn use_bound_and_where<S: Sync>(val: S) where S: std::fmt::Debug + std::marker::Send {
-   |                                                                  +++++++++++++++++++
+LL | fn use_bound_and_where<S: Sync + std::marker::Send>(val: S) where S: std::fmt::Debug {
+   |                                +++++++++++++++++++
 
 error[E0277]: `S` cannot be sent between threads safely
   --> $DIR/restrict-type-argument.rs:28:13