]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panics/location-detail-unwrap-no-file.rs
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / panics / location-detail-unwrap-no-file.rs
1 // run-fail
2 // check-run-results
3 // compile-flags: -Copt-level=0 -Zlocation-detail=line,column
4 // exec-env:RUST_BACKTRACE=0
5
6 fn main() {
7     let opt: Option<u32> = None;
8     opt.unwrap();
9 }