]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/lint-ctypes-73251.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / lint / lint-ctypes-73251.rs
CommitLineData
f035d41b
XL
1// check-pass
2
6a06907d
XL
3// revisions: min_tait full_tait
4#![feature(min_type_alias_impl_trait)]
5#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
6//[full_tait]~^ WARN incomplete
f035d41b
XL
7#![deny(improper_ctypes)]
8
9pub trait Foo {
10 type Assoc;
11}
12
13impl Foo for () {
14 type Assoc = u32;
15}
16
17type Bar = impl Foo<Assoc = u32>;
18
19fn assign() -> Bar {}
20
21extern "C" {
22 pub fn lint_me() -> <Bar as Foo>::Assoc;
23}
24
25fn main() {}