summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/bad-const-type.rs
blob: 934ee353da292246340369d6dbea38280454e61d (plain)
1
2
3
4
static i: String = 10;
//~^ ERROR mismatched types
//~| expected struct `String`, found integer
fn main() { println!("{}", i); }