]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/object-method-numbering.rs
2 // Test for using an object with an associated type binding as the
3 // instantiation for a generic type with a bound.
9 fn get(&self) -> Self::SomeType
;
12 fn get_int
<T
:SomeTrait
<SomeType
=i32>+?Sized
>(x
: &T
) -> i32 {
16 impl SomeTrait
for i32 {
18 fn get(&self) -> i32 {
25 let x1
: &dyn SomeTrait
<SomeType
=i32> = &x
;