]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-50716-1.rs
Rollup merge of #103644 - catlee:catlee/option-question-mark-docs, r=workingjubilee
[rust.git] / src / test / ui / nll / issue-50716-1.rs
1 //
2 // An additional regression test for the issue #50716 “NLL ignores lifetimes
3 // bounds derived from `Sized` requirements” that checks that the fixed compiler
4 // accepts this code fragment with both AST and MIR borrow checkers.
5 //
6 // check-pass
7
8 struct Qey<Q: ?Sized>(Q);
9
10 fn main() {}