mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
14 lines
208 B
Rust
14 lines
208 B
Rust
// Check that E0161 is a hard error in all possible configurations that might
|
|
// affect it.
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
trait Bar {
|
|
fn f(self);
|
|
}
|
|
|
|
fn foo(x: Box<dyn Bar>) {
|
|
x.f();
|
|
//~^ ERROR E0161
|
|
}
|