error[E0080]: evaluation of constant expression failed --> $DIR/issue-44578.rs:25:20 | LL | println!("{}", as Foo>::AMT); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors error: aborting due to previous error For more information about this error, try `rustc --explain E0080`.