summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-50716-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/issue-50716-1.rs')
-rw-r--r--tests/ui/nll/issue-50716-1.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/nll/issue-50716-1.rs b/tests/ui/nll/issue-50716-1.rs
new file mode 100644
index 000000000..9c3e24de4
--- /dev/null
+++ b/tests/ui/nll/issue-50716-1.rs
@@ -0,0 +1,10 @@
+//
+// An additional regression test for the issue #50716 “NLL ignores lifetimes
+// bounds derived from `Sized` requirements” that checks that the fixed compiler
+// accepts this code fragment with both AST and MIR borrow checkers.
+//
+// check-pass
+
+struct Qey<Q: ?Sized>(Q);
+
+fn main() {}