blob: 1ae2a67d60e9a94be24c8fe8a8549af2a7bf10f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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
}
|