mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
195 B
Rust
16 lines
195 B
Rust
//@ aux-build:issue-3907.rs
|
|
|
|
extern crate issue_3907;
|
|
|
|
type Foo = dyn issue_3907::Foo + 'static;
|
|
|
|
struct S {
|
|
name: isize
|
|
}
|
|
|
|
fn bar(_x: Foo) {}
|
|
//~^ ERROR E0038
|
|
//~| ERROR E0277
|
|
|
|
fn main() {}
|