rustc/tests/ui/error-codes/e0119/issue-28981.rs
2023-08-02 10:33:26 +02:00

8 lines
100 B
Rust

use std::ops::Deref;
struct Foo;
impl<Foo> Deref for Foo { } //~ ERROR must be used
fn main() {}