Closed itamar8910 closed 5 years ago
When trying to compile the example in the readme: println!("{:?}", parse(&config, "example.c"));
println!("{:?}", parse(&config, "example.c"));
I'm getting the following error: the size for values of type 'str' cannot be known at compilation time
the size for values of type 'str' cannot be known at compilation time
This is resolved when passing a String reference instead of an str: println!("{:?}", parse(&config, &"example.c".to_string()));
println!("{:?}", parse(&config, &"example.c".to_string()));
Thanks!
When trying to compile the example in the readme:
println!("{:?}", parse(&config, "example.c"));
I'm getting the following error:
the size for values of type 'str' cannot be known at compilation time
This is resolved when passing a String reference instead of an str:
println!("{:?}", parse(&config, &"example.c".to_string()));