]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0790.rs
3 const MY_ASSOC_CONST
: ();
10 impl MyTrait
for MyStruct
{
11 const MY_ASSOC_CONST
: () = ();
17 MyTrait
::my_fn(); //~ ERROR E0790
21 let _
= MyTrait
::MY_ASSOC_CONST
; //~ ERROR E0790
26 inner
::MyTrait
::my_fn(); //~ ERROR E0790
29 fn use_const_inner() {
30 let _
= inner
::MyTrait
::MY_ASSOC_CONST
; //~ ERROR E0790
39 impl MyTrait2
for Impl1
{
45 impl MyTrait2
for Impl2
{
49 fn call_multiple_impls() {
50 MyTrait2
::my_fn(); //~ ERROR E0790