2018-08-21 20:47:39 +01:00
|
|
|
// 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
|
|
|
|
2021-08-20 15:59:42 +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
|
|
|
}
|