blob: 2d265d5db5c14ce3d4a08c28b33009896622f2af [file] [log] [blame]
// ignore-tidy-linelength
// regression test for #26376
trait Foo {
fn foo(&self) -> [u8];
}
fn foo(f: Option<&dyn Foo>) {
if let Some(f) = f {
let _ = f.foo();
//~^ ERROR cannot move a value of type [u8]: the size of [u8] cannot be statically determined
}
}
fn main() { foo(None) }