]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-consts/associated-const-use-impl-of-same-trait.rs
3 // The main purpose of this test is to ensure that different impls of the same
4 // trait can refer to each other without setting off the static recursion check
5 // (as long as there's no actual recursion).
20 const BAR
: u32 = <IsFoo1
as Foo
>::BAR
;
24 assert_eq
!(<IsFoo1
>::BAR
, <IsFoo2
as Foo
>::BAR
);