We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7268aa commit 49192e5Copy full SHA for 49192e5
tests/ui/default-method-simple.rs renamed to tests/ui/traits/default_method_simple.rs
@@ -1,6 +1,6 @@
1
-//@ run-pass
+//! Checks basic default method functionality.
2
3
-#![allow(dead_code)]
+//@ run-pass
4
5
trait Foo {
6
fn f(&self) {
@@ -10,9 +10,7 @@ trait Foo {
10
fn g(&self);
11
}
12
13
-struct A {
14
- x: isize
15
-}
+struct A;
16
17
impl Foo for A {
18
fn g(&self) {
@@ -21,6 +19,6 @@ impl Foo for A {
21
19
22
20
23
pub fn main() {
24
- let a = A { x: 1 };
+ let a = A;
25
a.f();
26
0 commit comments