blob: a91bbe7083bc28ec5f7cad2998ec2e8efb5ab932 [file] [log] [blame]
use std::env;
pub struct Foo {
text: String
}
pub fn foo() -> Foo {
let args: Vec<String> = env::args().collect();
let text = args[1].clone();
pub Foo { text }
}
//~^^ ERROR missing `struct` for struct definition
fn main() {}