diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-26 21:08:56 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-26 21:08:56 +0800 |
| commit | d5347ff9c909af1c977dbb064c10cecea084d9d7 (patch) | |
| tree | 0c9ee7539401353dfdbc017e8572b1ae30b59a61 | |
| parent | 20151ca7169e9f94d9efe682eee4719d4b4ccdf3 (diff) | |
| download | rust-d5347ff9c909af1c977dbb064c10cecea084d9d7.tar.gz rust-d5347ff9c909af1c977dbb064c10cecea084d9d7.zip | |
Fix ui test
| -rw-r--r-- | src/test/ui/issue-13033.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/mismatched_types/E0053.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issue-13033.stderr b/src/test/ui/issue-13033.stderr index 2db3cb80a81..f06d7360d85 100644 --- a/src/test/ui/issue-13033.stderr +++ b/src/test/ui/issue-13033.stderr @@ -9,6 +9,10 @@ LL | fn bar(&mut self, other: &Foo) {} | = note: expected type `fn(&mut Baz, &mut dyn Foo)` found type `fn(&mut Baz, &dyn Foo)` +help: consider change the type to match the mutability in trait + | +LL | fn bar(&mut self, other: &mut Foo) {} + | ^^^^^^^^ error: aborting due to previous error diff --git a/src/test/ui/mismatched_types/E0053.stderr b/src/test/ui/mismatched_types/E0053.stderr index 1b16694bf2c..f707a600f29 100644 --- a/src/test/ui/mismatched_types/E0053.stderr +++ b/src/test/ui/mismatched_types/E0053.stderr @@ -21,6 +21,10 @@ LL | fn bar(&mut self) { } | = note: expected type `fn(&Bar)` found type `fn(&mut Bar)` +help: consider change the type to match the mutability in trait + | +LL | fn bar(&self) { } + | ^^^^^ error: aborting due to 2 previous errors diff --git a/src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr b/src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr index 28b16641e4d..631af21cac5 100644 --- a/src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr +++ b/src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr @@ -21,6 +21,10 @@ LL | fn bar(&mut self, bar: &Bar) { } //~ ERROR incompatible type | = note: expected type `fn(&mut Bar, &mut Bar)` found type `fn(&mut Bar, &Bar)` +help: consider change the type to match the mutability in trait + | +LL | fn bar(&mut self, bar: &mut Bar) { } //~ ERROR incompatible type + | ^^^^^^^^ error: aborting due to 2 previous errors |
