diff options
| author | Duddino <rezziandrea106@gmail.com> | 2020-04-16 14:04:12 +0200 |
|---|---|---|
| committer | Duddino <rezziandrea106@gmail.com> | 2020-04-16 14:05:57 +0200 |
| commit | f36f78f571f06b966d4f80a24dd9287546aeaf94 (patch) | |
| tree | 46e1b17e712116d1d2912b5a8c6fa15db9916460 /src/test | |
| parent | ad105ef9a4ad313fea5fb48329ab0795c8012644 (diff) | |
| download | rust-f36f78f571f06b966d4f80a24dd9287546aeaf94.tar.gz rust-f36f78f571f06b966d4f80a24dd9287546aeaf94.zip | |
Fixed issue with self: &Box<Self>
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/missing/missing-items/auxiliary/m1.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/missing/missing-items/m2.stderr | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/missing/missing-items/auxiliary/m1.rs b/src/test/ui/missing/missing-items/auxiliary/m1.rs index 177506d9176..fcf52c9e887 100644 --- a/src/test/ui/missing/missing-items/auxiliary/m1.rs +++ b/src/test/ui/missing/missing-items/auxiliary/m1.rs @@ -5,4 +5,5 @@ pub trait X { fn method2(self: Box<Self>, s: String) -> Self::Type; fn method3(other: &Self, s: String) -> Self::Type; fn method4(&self, other: &Self) -> Self::Type; + fn method5(self: &Box<Self>) -> Self::Type; } diff --git a/src/test/ui/missing/missing-items/m2.stderr b/src/test/ui/missing/missing-items/m2.stderr index 3231836bc88..64e9530e613 100644 --- a/src/test/ui/missing/missing-items/m2.stderr +++ b/src/test/ui/missing/missing-items/m2.stderr @@ -1,8 +1,8 @@ -error[E0046]: not all trait items implemented, missing: `CONSTANT`, `Type`, `method`, `method2`, `method3`, `method4` +error[E0046]: not all trait items implemented, missing: `CONSTANT`, `Type`, `method`, `method2`, `method3`, `method4`, `method5` --> $DIR/m2.rs:9:1 | LL | impl m1::X for X { - | ^^^^^^^^^^^^^^^^ missing `CONSTANT`, `Type`, `method`, `method2`, `method3`, `method4` in implementation + | ^^^^^^^^^^^^^^^^ missing `CONSTANT`, `Type`, `method`, `method2`, `method3`, `method4`, `method5` in implementation | = help: implement the missing item: `const CONSTANT: u32 = 42;` = help: implement the missing item: `type Type = Type;` @@ -10,6 +10,7 @@ LL | impl m1::X for X { = help: implement the missing item: `fn method2(self: std::boxed::Box<Self>, _: std::string::String) -> <Self as m1::X>::Type { todo!() }` = help: implement the missing item: `fn method3(_: &Self, _: std::string::String) -> <Self as m1::X>::Type { todo!() }` = help: implement the missing item: `fn method4(&self, _: &Self) -> <Self as m1::X>::Type { todo!() }` + = help: implement the missing item: `fn method5(self: &std::boxed::Box<Self>) -> <Self as m1::X>::Type { todo!() }` error: aborting due to previous error |
