Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
error-codes
/
E0161.rs
blob: 1ae2a67d60e9a94be24c8fe8a8549af2a7bf10f9 [
file
] [
log
] [
blame
]
// 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
}