Sign in
fuchsia
/
third_party
/
rust
/
5670d048c0f88af9976b5505c7853b23dd06770d
/
.
/
src
/
test
/
ui
/
nll
/
issue-47153-generic-const.rs
blob: 9f4d57111bbe982dc4bf816230583c0089a3d1d6 [
file
] [
log
] [
blame
]
// 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
()
{
}