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.

10 lines
191 B
Rust
Raw Normal View History

#![feature(const_trait_impl, effects)]
2021-08-25 14:30:09 +00:00
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
2023-12-06 02:42:59 +00:00
//~^ ERROR mismatched types
// FIXME(effects): diagnostic
}
fn main() {}