Closed
Description
On rustc 1.27.0-nightly (ac3c2288f 2018-04-18)
compiling clippy yields:
Compiling clippy_lints v0.0.194
error[E0308]: mismatched types
--> /home/bemeurer/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/loops.rs:1801:48
|
1801 | ty::TyArray(_, n) => (0..=32).contains(n.val.to_raw_bits().expect("array length")),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected reference, found u128
| help: consider borrowing here: `&n.val.to_raw_bits().expect("array length")`
|
= note: expected type `&_`
found type `u128`
error[E0308]: mismatched types
--> /home/bemeurer/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/regex.rs:213:56
|
213 | str_span(expr.span, *e.span(), offset),
| ^^^^^^ expected usize, found u16
error[E0308]: mismatched types
--> /home/bemeurer/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/regex.rs:221:56
|
221 | str_span(expr.span, *e.span(), offset),
| ^^^^^^ expected usize, found u16
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0308`.
Metadata
Metadata
Assignees
Labels
No labels