]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
15 impl Foo
<u8> for i8 {}
16 impl Foo
<u16> for i8 {}
17 impl Foo
<u32> for i8 {}
18 impl Foo
<u64> for i8 {}
19 impl Foo
<bool
> for i8 {}
21 impl Foo
<u16> for u8 {}
22 impl Foo
<u32> for u8 {}
23 impl Foo
<u64> for u8 {}
24 impl Foo
<bool
> for u8 {}
26 impl Foo
<u8> for bool {}
27 impl Foo
<u16> for bool {}
28 impl Foo
<u32> for bool {}
29 impl Foo
<u64> for bool {}
30 impl Foo
<bool
> for bool {}
31 impl Foo
<i8> for bool {}
34 Foo
::<i32>::bar(&1i8);
35 Foo
::<i32>::bar(&1u8);
36 Foo
::<i32>::bar(&true);