Skip to content

error[internal]: left behind trailing whitespace #5521

Open
@arifd

Description

@arifd

this code:

mod phase {
    pub trait Phase {
        const RUN: &'static str;
        const FAIL: &'static str;

        fn to_style(&self, template: &str);
    }

    pub struct Updating {}

    impl Phase for Updating {
        const RUN: &'static str = "";
        const FAIL: &'static str = "";
            
        #[rustfmt::skip]
        fn to_style(&self, template: &str) {}
    }
}

fn main() {}

produces this error:

error[internal]: left behind trailing whitespace
  --> /tmp/arif/src/main.rs:14:14:1
   |
14 |             
   | ^^^^^^^^^^^^
   |

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions