]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13359.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-13359.rs
1 fn foo(_s: i16) { }
2
3 fn bar(_s: u32) { }
4
5 fn main() {
6     foo(1*(1 as isize));
7     //~^ ERROR mismatched types
8     //~| expected `i16`, found `isize`
9
10     bar(1*(1 as usize));
11     //~^ ERROR mismatched types
12     //~| expected `u32`, found `usize`
13 }