]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-47153-generic-const.rs
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-47153-generic-const.rs
1 // run-pass
2
3 // Regression test for #47153: constants in a generic context (such as
4 // a trait) used to ICE.
5
6 #![allow(warnings)]
7
8 trait Foo {
9     const B: bool = true;
10 }
11
12 struct Bar<T> { x: T }
13
14 impl<T> Bar<T> {
15     const B: bool = true;
16 }
17
18 fn main() { }