error[E0277]: the trait bound `NotExternType: ExternType` is not satisfied --> span-externtype-error.rs:12:5 | 12 | fn arg_type(&self, bad_type: NotExternType); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ExternType` is not implemented for `NotExternType` | = help: the following other types implement trait `ExternType`: <&'a BStr as ExternType> <&'a BStr as ExternType> <&'a ComItf as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a str as ExternType> <&'a str as ExternType> <() as ExternType> and 35 others error[E0277]: the trait bound `NotExternType: ExternType` is not satisfied --> span-externtype-error.rs:14:5 | 14 | fn ret_type(&self) -> ComResult; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ExternType` is not implemented for `NotExternType` | = help: the following other types implement trait `ExternType`: <&'a BStr as ExternType> <&'a BStr as ExternType> <&'a ComItf as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a str as ExternType> <&'a str as ExternType> <() as ExternType> and 35 others error[E0277]: the trait bound `NotExternType: ExternType` is not satisfied --> span-externtype-error.rs:16:5 | 16 | fn all_type(&self, bad_type: NotExternType) -> ComResult; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ExternType` is not implemented for `NotExternType` | = help: the following other types implement trait `ExternType`: <&'a BStr as ExternType> <&'a BStr as ExternType> <&'a ComItf as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a str as ExternType> <&'a str as ExternType> <() as ExternType> and 35 others error[E0277]: the trait bound `NotExternType: ExternType` is not satisfied --> span-externtype-error.rs:12:5 | 12 | fn arg_type(&self, bad_type: NotExternType); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ExternType` is not implemented for `NotExternType` | = help: the following other types implement trait `ExternType`: <&'a BStr as ExternType> <&'a BStr as ExternType> <&'a ComItf as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a str as ExternType> <&'a str as ExternType> <() as ExternType> and 35 others error[E0277]: the trait bound `NotExternType: ExternType` is not satisfied --> span-externtype-error.rs:14:5 | 14 | fn ret_type(&self) -> ComResult; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ExternType` is not implemented for `NotExternType` | = help: the following other types implement trait `ExternType`: <&'a BStr as ExternType> <&'a BStr as ExternType> <&'a ComItf as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a str as ExternType> <&'a str as ExternType> <() as ExternType> and 35 others error[E0277]: the trait bound `NotExternType: ExternType` is not satisfied --> span-externtype-error.rs:16:5 | 16 | fn all_type(&self, bad_type: NotExternType) -> ComResult; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ExternType` is not implemented for `NotExternType` | = help: the following other types implement trait `ExternType`: <&'a BStr as ExternType> <&'a BStr as ExternType> <&'a ComItf as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a core::ffi::c_str::CStr as ExternType> <&'a str as ExternType> <&'a str as ExternType> <() as ExternType> and 35 others error: aborting due to 6 previous errors For more information about this error, try `rustc --explain E0277`.