]> git.lizzy.rs Git - rust.git/blob - tests/ui/as_underscore.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / as_underscore.stderr
1 error: using `as _` conversion
2   --> $DIR/as_underscore.rs:9:9
3    |
4 LL |     foo(n as _);
5    |         ^^^^^-
6    |              |
7    |              help: consider giving the type explicitly: `usize`
8    |
9    = note: `-D clippy::as-underscore` implied by `-D warnings`
10
11 error: using `as _` conversion
12   --> $DIR/as_underscore.rs:12:18
13    |
14 LL |     let _n: u8 = n as _;
15    |                  ^^^^^-
16    |                       |
17    |                       help: consider giving the type explicitly: `u8`
18
19 error: aborting due to 2 previous errors
20