]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/lint-ctypes-73249-5.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / lint / lint-ctypes-73249-5.rs
CommitLineData
6a06907d
XL
1// revisions: min_tait full_tait
2#![feature(min_type_alias_impl_trait)]
3#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
4//[full_tait]~^ WARN incomplete
f035d41b
XL
5#![deny(improper_ctypes)]
6
7pub trait Baz { }
8
9impl Baz for u32 { }
10
11type Qux = impl Baz;
12
13fn assign() -> Qux { 3 }
14
15#[repr(transparent)]
16pub struct A {
17 x: Qux,
18}
19
20extern "C" {
21 pub fn lint_me() -> A; //~ ERROR: uses type `impl Baz`
22}
23
24fn main() {}