Files
rust/tests/ui/impl-trait/non-defining-uses/shex_compat-regression-test.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
468 B
Rust
Raw Normal View History

2025-09-11 13:08:36 +02:00
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ ignore-compare-mode-next-solver (explicit revisions)
//@ check-pass
// Regression test for trait-system-refactor-initiative#181.
struct ShExCompactPrinter;
struct TripleExpr;
impl ShExCompactPrinter {
fn pp_triple_expr(&self) -> impl Fn(&TripleExpr, &ShExCompactPrinter) + '_ {
move |te, printer| {
printer.pp_triple_expr()(te, printer);
}
}
}
fn main() {}