Files
rust/tests/ui/error-codes/E0161.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
208 B
Rust
Raw Normal View History

// Check that E0161 is a hard error in all possible configurations that might
// affect it.
2025-06-13 01:16:36 +02:00
#![crate_type = "lib"]
2016-05-27 22:06:24 +02:00
trait Bar {
fn f(self);
}
fn foo(x: Box<dyn Bar>) {
x.f();
2025-06-13 01:16:36 +02:00
//~^ ERROR E0161
2016-05-27 22:06:24 +02:00
}