<p dir="auto">by <strong>daviddengcn</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
<a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a>  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1.
2.
3.

What is the expected output?
After "go fmt" my example cases are not failed

What do you see instead?
They are failed by tabs

Which compiler are you using (5g, 6g, 8g, gccgo)?

Which operating system are you using?
MacOS


Which version are you using?  (run 'go version')
1.0.3

Please provide any additional information below.
More information: <a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!topic/golang-nuts/ZH5YgwmjCXk</pre>
<pre class="notranslate">Detected by experimental deadlock detector in cl/77450043.

==================
WARNING: DEADLOCK
Goroutine 999 lock mutex 35 while holding mutex 35:
  sync.(*RWMutex).RLock()
      src/pkg/sync/rwmutex.go:42 +0xa2
  sync.(*rlocker).Lock()
      src/pkg/sync/rwmutex.go:133 +0x34
  sync_test.func·027()
      src/pkg/sync/rwmutex_test.go:132 +0xb6

Mutex 35 was previously locked here:
  sync.(*RWMutex).RLock()
      src/pkg/sync/rwmutex.go:42 +0xa2
  sync.(*rlocker).Lock()
      src/pkg/sync/rwmutex.go:133 +0x34
  sync_test.func·027()
      src/pkg/sync/rwmutex_test.go:133 +0xda
==================

==================
WARNING: DEADLOCK
Goroutine 999 lock mutex 16 while holding mutex 16:
  sync.(*RWMutex).RLock()
      src/pkg/sync/rwmutex.go:42 +0xa2
  sync_test.func·028()
      src/pkg/sync/rwmutex_test.go:166 +0x88
  testing.func·002()
      src/pkg/testing/benchmark.go:416 +0x17d

Mutex 16 was previously locked here:
  sync.(*RWMutex).RLock()
      src/pkg/sync/rwmutex.go:42 +0xa2
  sync_test.func·028()
      src/pkg/sync/rwmutex_test.go:167 +0x96
  testing.func·002()
      src/pkg/testing/benchmark.go:416 +0x17d
==================

Tests lock RWMutex recursively. RWMutex is not recursive.</pre>