Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
associated-type-bounds
/
suggest-contraining-assoc-type-because-of-assoc-const.rs
blob: abff6af73e24b3c5d629c61552d44079fb621689 [
file
] [
log
] [
blame
]
// run-rustfix
trait
O
{
type
M
;
}
trait
U
<
A
:
O
>
{
const
N
:
A
::
M
;
}
impl
<
D
>
O
for
D
{
type
M
=
u8
;
}
impl
<
C
:
O
>
U
<
C
>
for
u16
{
const
N
:
C
::
M
=
4u8
;
//~ ERROR mismatched types
}
fn
main
()
{}