aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/diagnostic_underline.rs
blob: fcbf468e1c89c71409fc3ceb4c870ddb8d6bd259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-additional-options "-quiet" }

/* { dg-options "-fdiagnostics-show-caret" } */


fn barbarbar() {}

const fn foo() { 
    barbarbar();// { dg-error "only functions marked as 'const' are allowed to be called from constant contexts" }
/* { dg-begin-multiline-output "" }
     barbarbar();//
     ^~~~~~~~~
{ dg-end-multiline-output "" } */
}