Skip to content

Commit

Permalink
Rollup merge of rust-lang#98889 - TaKO8Ki:add-regression-test-for-794…
Browse files Browse the repository at this point in the history
…67, r=Dylan-DPC

Add regression test for rust-lang#79467

closes rust-lang#79467
  • Loading branch information
Dylan-DPC committed Jul 5, 2022
2 parents e1305c2 + dcd6620 commit d2c55ca
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 d2c55ca

Please sign in to comment.