Skip to content

Commit

Permalink
future compat implications
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Oct 26, 2022
1 parent 3e44c90 commit f824552
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/ui/wf/higher-ranked/ignored-trait-bound.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// check-pass
struct NeedsCopy<T: Copy>(T);

// Skips WF because of an escaping bound region.
struct HasWfHigherRanked
where
(for<'a> fn(NeedsCopy<&'a mut u32>)):,
{}

// Skips WF because of a placeholder region.
struct HasWfPlaceholder
where
for<'a> NeedsCopy<&'a mut u32>:,
{}

fn main() {
let _: HasWfHigherRanked;
let _: HasWfPlaceholder;
}

0 comments on commit f824552

Please sign in to comment.