Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- fn foo<'a, 'a>(n: &'a u32, p: &'a u32) {}
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0263]: lifetime name `'a` declared twice in the same scope
- --> src/main.rs:5:20
- |
- 5 | fn foo<'a, 'a>(n: &'a u32, p: &'a u32) {}
- | -- ^^ declared twice
- | |
- | previous declaration here
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0263`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment