Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
associated-inherent-types
/
bugs
/
inference-fail.rs
blob: a920b412b1a492a9840b0c588299bed9d0838926 [
file
] [
log
] [
blame
]
// known-bug: unknown
#![
feature
(
inherent_associated_types
)]
#![
allow
(
incomplete_features
)]
struct
S
<
T
>(
T
);
impl
S
<()>
{
type
P
=
i128
;
}
fn
main
()
{
// We fail to infer `_ == ()` here.
let
_
:
S
<
_
>::
P
;
}