about summary refs log tree commit diff
path: root/tests/ui/static/bad-const-type.rs
blob: d4e6352d7c1c9b6b37faa8ed77e4d9ab880690ce (plain)
1
2
3
4
static i: String = 10;
//~^ ERROR mismatched types
//~| NOTE expected `String`, found integer
fn main() { println!("{}", i); }