Debian Codegraph @

gcc/testsuite/rust/compile/diagnostic_underline.rs

raw
1 // { dg-additional-options "-quiet" }
2
3 /* { dg-options "-fdiagnostics-show-caret" } */
4
5
6 fn barbarbar() {}
7
8 const fn foo() {
9 barbarbar();// { dg-error "only functions marked as 'const' are allowed to be called from constant contexts" }
10 /* { dg-begin-multiline-output "" }
11 barbarbar();//
12 ^~~~~~~~~
13 { dg-end-multiline-output "" } */
14 }
15