Sign in
android
/
toolchain
/
rustc
/
983137f038c4d4b95a0cd86b7c42d0313b50de67
/
.
/
src
/
test
/
ui
/
lint
/
lint-ctypes-73249.rs
blob: 5b48fa9b7376f50d33156c61ca8ddccc8a1be234 [
file
] [
log
] [
blame
]
// check-pass
#![
deny
(
improper_ctypes
)]
pub
trait
Foo
{
type
Assoc
;
}
impl
Foo
for
()
{
type
Assoc
=
u32
;
}
extern
"C"
{
pub
fn
lint_me
(
x
:
Bar
<()>);
}
#[
repr
(
transparent
)]
pub
struct
Bar
<
T
:
Foo
>
{
value
:
<
T
as
Foo
>::
Assoc
,
}
fn
main
()
{}