error[E0224]: at least one trait is required for an object type --> $DIR/issue-106213.rs:4:17 | LL | fn use_avx() -> dyn { | ^^^ error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0224`.