未验证 提交 70ade7d5 编写于 作者: M Matthias Krüger 提交者: GitHub

Rollup merge of #98889 - TaKO8Ki:add-regression-test-for-79467, r=Dylan-DPC

Add regression test for #79467

closes #79467
fn g()
where
'static: 'static,
dyn 'static: 'static + Copy, //~ ERROR at least one trait is required for an object type
{
}
fn main() {}
error[E0224]: at least one trait is required for an object type
--> $DIR/issue-79467.rs:4:5
|
LL | dyn 'static: 'static + Copy,
| ^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0224`.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册