Sign in
go
/
blog
/
35eb774bf3af9e71daed6c7484da7045ab87ad21
/
.
/
content
/
constants
/
exercise4.go
blob: 3acc664a7f55168cad137856c172c598ede72585 [
file
] [
log
] [
blame
]
// +build OMIT
package main
func main() {
// START OMIT
var u uint
const v = -1
u = uint(v)
// Error: negative value
// STOP OMIT
_ = u
}