about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEsteban Kuber <esteban@kuber.com.ar>2021-11-21 01:49:51 +0000
committerEsteban Kuber <esteban@kuber.com.ar>2021-11-25 18:04:33 +0000
commit9cce7bb92181c4e27dbff1fc18d7496c172768ec (patch)
tree55ab0a233b5f9d32f053cea0a739fa9690306175 /src
parent37a11a96a1b3ad68c40cc293270cf8ffbe7904de (diff)
downloadrust-9cce7bb92181c4e27dbff1fc18d7496c172768ec.tar.gz
rust-9cce7bb92181c4e27dbff1fc18d7496c172768ec.zip
Account for type obligation coming from `const` and `static`
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/static/static-mut-bad-types.stderr7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/static/static-mut-bad-types.stderr b/src/test/ui/static/static-mut-bad-types.stderr
index e5a59de6f14..983e1026f91 100644
--- a/src/test/ui/static/static-mut-bad-types.stderr
+++ b/src/test/ui/static/static-mut-bad-types.stderr
@@ -1,10 +1,11 @@
 error[E0308]: mismatched types
   --> $DIR/static-mut-bad-types.rs:5:13
    |
+LL | static mut a: isize = 3;
+   |               ----- expected due to this type
+...
 LL |         a = true;
-   |         -   ^^^^ expected `isize`, found `bool`
-   |         |
-   |         expected due to the type of this binding
+   |             ^^^^ expected `isize`, found `bool`
 
 error: aborting due to previous error