rust-lang / rust-lang/rust-bindgen

the name <whatever> is defined multiple times + cannot find `T` in this scope

Open
#1,848 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-C++ A-templates
Dominant language
Rust
Stars
5.3k
Forks
829
Avg merge
1d 1h
Merged PRs (30d)
15

Description

Input C/C++ Header
#include <wx/wx.h>

really sorry for the include. I just don't know how to reproduce this minimally. It's just wxWidgets 3.1.3, built from source on macOS 10.14.6.

Bindgen Invocation
bindgen::Builder::default()
	.header("wrapper.hpp")
	.detect_include_paths(false)
	.clang_args(cxx_flags)
	.parse_callbacks(Box::new(bindgen::CargoCallbacks))
	.whitelist_type("wx.*")
	.opaque_type("(::)?std::.*")
	.generate()
	.expect("Couldn't make bindings!");
Actual Results
error[E0428]: the name `CharType` is defined multiple times
     --> wxRust_sys/src/bindings.rs:68988:1
      |
68930 | pub type CharType = ::std::os::raw::c_char;
      | ------------------------------------------- previous definition of the type `CharType` here
...
68988 | pub type CharType = u32;
      | ^^^^^^^^^^^^^^^^^^^^^^^^ `CharType` redefined here
      |
      = note: `CharType` must be defined only once in the type namespace of this module

error[E0428]: the name `pointer` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69028:1
      |
69027 | pub type pointer = pointer;
      | --------------------------- previous definition of the type `pointer` here
69028 | pub type pointer = type_;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^ `pointer` redefined here
      |
      = note: `pointer` must be defined only once in the type namespace of this module

error[E0428]: the name `type_` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69030:1
      |
69029 | pub type type_ = type_;
      | ----------------------- previous definition of the type `type_` here
69030 | pub type type_ = pointer;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^ `type_` redefined here
      |
      = note: `type_` must be defined only once in the type namespace of this module

error[E0428]: the name `pointer` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69031:1
      |
69027 | pub type pointer = pointer;
      | --------------------------- previous definition of the type `pointer` here
...
69031 | pub type pointer = *mut u32;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `pointer` redefined here
      |
      = note: `pointer` must be defined only once in the type namespace of this module

error[E0428]: the name `const_pointer` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69147:1
      |
69146 | pub type const_pointer = const_pointer;
      | --------------------------------------- previous definition of the type `const_pointer` here
69147 | pub type const_pointer = type_;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_pointer` redefined here
      |
      = note: `const_pointer` must be defined only once in the type namespace of this module

error[E0428]: the name `type_` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69148:1
      |
69029 | pub type type_ = type_;
      | ----------------------- previous definition of the type `type_` here
...
69148 | pub type type_ = const_pointer;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `type_` redefined here
      |
      = note: `type_` must be defined only once in the type namespace of this module

error[E0428]: the name `const_pointer` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69149:1
      |
69146 | pub type const_pointer = const_pointer;
      | --------------------------------------- previous definition of the type `const_pointer` here
...
69149 | pub type const_pointer = *const u32;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_pointer` redefined here
      |
      = note: `const_pointer` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69365:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
69365 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69406:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69406 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69407:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69407 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69408:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69408 | pub type value_type = ::std::os::raw::c_char;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69448:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69448 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69449:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69449 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69450:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69450 | pub type value_type = ::std::os::raw::c_short;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69490:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69490 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69491:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69491 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69492:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69492 | pub type value_type = ::std::os::raw::c_int;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69532:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69532 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69533:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69533 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69534:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69534 | pub type value_type = ::std::os::raw::c_long;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69574:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69574 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69575:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69575 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69576:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69576 | pub type value_type = ::std::os::raw::c_ulong;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69616:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69616 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69617:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69617 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69618:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69618 | pub type value_type = f64;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69814:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69814 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69815:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69815 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69816:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69816 | pub type value_type = *mut ::std::os::raw::c_void;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69877:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69877 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69878:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
69878 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:69879:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
69879 | pub type value_type = *mut wxDateTimeHolidayAuthority;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70072:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70072 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70073:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70073 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70074:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
70074 | pub type value_type = *const wxEventTableEntry;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70114:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70114 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70115:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70115 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70116:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
70116 | pub type value_type = *mut wxEvtHandler;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70156:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70156 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70157:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70157 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70158:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
70158 | pub type value_type = *mut wxClassInfo;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70390:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70390 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70391:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70391 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70392:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
70392 | pub type value_type = *mut ::std::os::raw::c_char;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70490:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70490 | pub type const_reference = const_reference;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `const_reference` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70491:1
      |
69364 | pub type const_reference = const_reference;
      | ------------------------------------------- previous definition of the type `const_reference` here
...
70491 | pub type const_reference = *const value_type;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `const_reference` redefined here
      |
      = note: `const_reference` must be defined only once in the type namespace of this module

error[E0428]: the name `value_type` is defined multiple times
     --> wxRust_sys/src/bindings.rs:70492:1
      |
69366 | pub type value_type = *const ::std::os::raw::c_void;
      | ---------------------------------------------------- previous definition of the type `value_type` here
...
70492 | pub type value_type = *mut wxToolTip;
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `value_type` redefined here
      |
      = note: `value_type` must be defined only once in the type namespace of this module

error[E0412]: cannot find type `T` in this scope
    --> wxRust_sys/src/bindings.rs:6860:53
     |
6860 | pub type wxBaseArray_CMPFUNC = wxArray_SortFunction<T>;
     |                             -                       ^ not found in this scope
     |                             |
     |                             help: you might be missing a type parameter: `<T>`

error[E0412]: cannot find type `T` in this scope
    --> wxRust_sys/src/bindings.rs:6881:28
     |
6880 | pub struct wxBaseObjectArray {
     |                             - help: you might be missing a type parameter: `<T>`
6881 |     pub _base: wxBaseArray<T>,
     |                            ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
    --> wxRust_sys/src/bindings.rs:6883:47
     |
6883 | pub type wxBaseObjectArray_base = wxBaseArray<T>;
     |                                -              ^ not found in this scope
     |                                |
     |                                help: you might be missing a type parameter: `<T>`

Generated file: bindings.rs.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bindgen::Builder invocation and wrapper.hpp, using the wx/wx.h include and the stated wxWidgets/macOS setup. Inspect the generated wxRust_sys/src/bindings.rs around the reported duplicate definitions and determine a reproducible case. Done means bindgen no longer emits conflicting definitions or the failure is clearly diagnosed with a focused reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.