]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/lint-ctypes-73251.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / lint / lint-ctypes-73251.rs
CommitLineData
f035d41b
XL
1// check-pass
2
94222f64 3#![feature(type_alias_impl_trait)]
f035d41b
XL
4#![deny(improper_ctypes)]
5
6pub trait Foo {
7 type Assoc;
8}
9
10impl Foo for () {
11 type Assoc = u32;
12}
13
14type Bar = impl Foo<Assoc = u32>;
15
16fn assign() -> Bar {}
17
18extern "C" {
19 pub fn lint_me() -> <Bar as Foo>::Assoc;
20}
21
22fn main() {}