Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
issue-47153-generic-const.rs
blob: b8a435f37ed1a4593fa37e86988e74876639b398 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{
}