rust/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-fail.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
201 B
Rust
Raw Normal View History

// FIXME(effects)
// check-pass
#![feature(const_trait_impl, effects)]
2021-08-25 09:30:09 -05:00
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
2023-04-16 06:12:37 -05:00
// (remove this) ~^ ERROR can't compare
}
fn main() {}