Why put "_dummy: ()" in a struct?

Viewed 87

In the chrono crate I noticed this:

#[derive(Clone, PartialEq)]
pub struct ParseWeekdayError {
    _dummy: (),
}

What's the purpose of this _dummy field?

0 Answers
Related