]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / trait-with-supertraits-needing-sized-self.stderr
index cfdf5bd53eeb6d07b8e9024cad1eaac09f583748..8fdca54d2d8b8ab6552b11680f31a3a46feb5b23 100644 (file)
@@ -7,12 +7,12 @@ LL | trait ArithmeticOps: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self>
   ::: $SRC_DIR/core/src/ops/arith.rs:LL:COL
    |
 LL | pub trait Add<Rhs = Self> {
-   |               --- required by this bound in `std::ops::Add`
+   |               --- required by this bound in `Add`
    |
 help: consider further restricting `Self`
    |
-LL | trait ArithmeticOps: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> + std::marker::Sized {}
-   |                                                                                                ^^^^^^^^^^^^^^^^^^^^
+LL | trait ArithmeticOps: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> + Sized {}
+   |                                                                                                ^^^^^^^
 
 error: aborting due to previous error