Update ui test

This commit is contained in:
csmoe 2018-07-25 09:30:53 +08:00
parent d5256b75df
commit 1d79588994

View File

@ -5,7 +5,7 @@ LL | [1, 2, 3].sort_by(|| panic!());
| ^^^^^^^ -- takes 0 arguments | ^^^^^^^ -- takes 0 arguments
| | | |
| expected closure that takes 2 arguments | expected closure that takes 2 arguments
help: change the closure to take and ignore the expected arguments help: consider changing the closure to take and ignore the expected arguments
| |
LL | [1, 2, 3].sort_by(|_, _| panic!()); LL | [1, 2, 3].sort_by(|_, _| panic!());
| ^^^^^^ | ^^^^^^
@ -55,7 +55,7 @@ note: required by `f`
| |
LL | fn f<F: Fn<usize>>(_: F) {} LL | fn f<F: Fn<usize>>(_: F) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^
help: change the closure to take and ignore the expected argument help: consider changing the closure to take and ignore the expected argument
| |
LL | f(|_| panic!()); LL | f(|_| panic!());
| ^^^ | ^^^