package main

import "os"

// Adapted from errors/errors.go
//
// New fails liveness analysis at build time if Addrs are not optimized away.

// New returns an error that formats as the given text.
func New(text string) error {
	return &errorString{text}
}

// errorString is a trivial implementation of error.
type errorString struct {
	s string
}

func (e *errorString) Error() string {
	return e.s
}

func main() {
	New("foo")
	os.Exit(0)
}
