Rollup merge of #98889 - TaKO8Ki:add-regression-test-for-79467, r=Dylan-DPC
Add regression test for #79467 closes #79467
This commit is contained in:
commit
70ade7d503
2 changed files with 17 additions and 0 deletions
8
src/test/rustdoc-ui/issue-79467.rs
Normal file
8
src/test/rustdoc-ui/issue-79467.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fn g()
|
||||
where
|
||||
'static: 'static,
|
||||
dyn 'static: 'static + Copy, //~ ERROR at least one trait is required for an object type
|
||||
{
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
9
src/test/rustdoc-ui/issue-79467.stderr
Normal file
9
src/test/rustdoc-ui/issue-79467.stderr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue