tests: issue-34798.rs => allow-phantomdata-in-ffi.rs

This commit is contained in:
Jubilee Young 2024-09-27 14:12:57 -07:00
parent a1fbf251b8
commit 19d5568ad3
2 changed files with 2 additions and 1 deletions

View File

@ -2750,7 +2750,6 @@ ui/lint/issue-1866.rs
ui/lint/issue-19102.rs
ui/lint/issue-20343.rs
ui/lint/issue-30302.rs
ui/lint/issue-34798.rs
ui/lint/issue-35075.rs
ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs
ui/lint/issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs

View File

@ -1,6 +1,8 @@
//@ run-pass
#![forbid(improper_ctypes)]
#![allow(dead_code)]
// issue https://github.com/rust-lang/rust/issues/34798
// We allow PhantomData in FFI so bindgen can bind templated C++ structs with "unused generic args"
#[repr(C)]
pub struct Foo {