]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no_share-enum.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / no_share-enum.stderr
index 4a93edc100ec6a503efa08d856b5ef0504e67f67..a8ab69200ecf1dab5fe468ff0b4bc3b49f271196 100644 (file)
@@ -8,7 +8,11 @@ LL |     bar(x);
    |     ^^^ `NoSync` cannot be shared between threads safely
    |
    = help: within `Foo`, the trait `Sync` is not implemented for `NoSync`
-   = note: required because it appears within the type `Foo`
+note: required because it appears within the type `Foo`
+  --> $DIR/no_share-enum.rs:8:6
+   |
+LL | enum Foo { A(NoSync) }
+   |      ^^^
 
 error: aborting due to previous error