rust/tests/ui/nll/issue-47153-generic-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
256 B
Rust
Raw Normal View History

// 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() { }