mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
19 lines
256 B
Rust
19 lines
256 B
Rust
// 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() { }
|