1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// run-pass // Regression test for #47153: constants in a generic context (such as // a trait) used to ICE. #![allow(warnings)] trait Foo { const B: bool = true; } struct Bar<T> { x: T } impl<T> Bar<T> { const B: bool = true; } fn main() { }