Skip to content

Commit

Permalink
Rollup merge of #98889 - TaKO8Ki:add-regression-test-for-79467, r=Dyl…
Browse files Browse the repository at this point in the history
…an-DPC

Add regression test for #79467

closes #79467
  • Loading branch information
matthiaskrgr authored Jul 5, 2022
2 parents cca43fe + dcd6620 commit 70ade7d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/rustdoc-ui/issue-79467.rs
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions src/test/rustdoc-ui/issue-79467.stderr
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit 70ade7d

Please sign in to comment.