summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-ctypes-73249-3.rs
blob: ef8ab7e03d2f07277c0105a158398ebc231d7a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![feature(type_alias_impl_trait)]
#![deny(improper_ctypes)]

pub trait Baz {}

impl Baz for u32 {}

type Qux = impl Baz;

fn assign() -> Qux {
    3
}

#[repr(C)]
pub struct A {
    x: Qux,
}

extern "C" {
    pub fn lint_me() -> A; //~ ERROR: uses type `Qux`
}

fn main() {}