diff options
Diffstat (limited to 'tests/ui/static/bad-const-type.stderr')
-rw-r--r-- | tests/ui/static/bad-const-type.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/static/bad-const-type.stderr b/tests/ui/static/bad-const-type.stderr new file mode 100644 index 000000000..dcc1ee07c --- /dev/null +++ b/tests/ui/static/bad-const-type.stderr @@ -0,0 +1,11 @@ +error[E0308]: mismatched types + --> $DIR/bad-const-type.rs:1:20 + | +LL | static i: String = 10; + | ^^- help: try using a conversion method: `.to_string()` + | | + | expected struct `String`, found integer + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |