//@ check-pass
#![allow(dead_code)]
trait T {
type X;
const X: Self::X;
}
fn foo<X: T>() {
let _: X::X = X::X;
trait S {
fn bar<X: S>() {
fn main() {}