github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/challenges/unused0.gno (about) 1 package main 2 3 // NOTE: instead of patching the vm code, this should be handled by an 4 // integration of `gno transpile --gobuild`, which uses `go build` under 5 // the hood and already detects unused variables. 6 func main() { 7 var x int 8 } 9 10 // Error: 11 // x declared but not used