Skip to content

can't log the same string twice #1

@japaric

Description

@japaric

STR

fn foo() {
    info!(LOGGER, "Hello");
}

fn bar() {
    warn!(LOGGER, "Hello");
}
$ xargo build
error: symbol `Hello` is already defined
 --> src/main.rs:4:1
  |
4 | static BAR: u8 = 0;
  | ^^^^^^^^^^^^^^^^^^^

error: Could not compile `hello`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions