diff --git a/tests/source/where-clause.rs b/tests/source/where-clause.rs index 2a916082548..686e4531211 100644 --- a/tests/source/where-clause.rs +++ b/tests/source/where-clause.rs @@ -56,3 +56,8 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> { // ... } } + +// #4315 +pub trait AsUnindented { + type Output<'ast> where Self: 'ast; +} diff --git a/tests/target/where-clause.rs b/tests/target/where-clause.rs index eb2f8d5e6e8..21c80a121db 100644 --- a/tests/target/where-clause.rs +++ b/tests/target/where-clause.rs @@ -105,3 +105,8 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> { // ... } } + +// #4315 +pub trait AsUnindented { + type Output<'ast> where Self: 'ast; +}