github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/simple/s1006/testdata/src/example.com/CheckForTrue/for-true.go (about) 1 package pkg 2 3 func fn() { 4 for false { 5 } 6 for true { //@ diag(`should use for`) 7 } 8 for { 9 } 10 for i := 0; true; i++ { 11 } 12 }