blob: 0a0e6021e84bfcbe2e9553ca225576ccfb037544 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-additional-options "-frust-compile-until=nameresolution" }
struct MyStruct;
trait X {}
fn test_a();
// { dg-error "free function without a body" "" { target *-*-* } .-1 }
impl MyStruct {
fn test_b<T>()
// { dg-error "associated function in .impl. without body" "" { target *-*-* } .-1 }
where
T: Copy;
fn test_c<T>();
// { dg-error "associated function in .impl. without body" "" { target *-*-* } .-1 }
}
impl X for MyStruct {
fn test_d();
// { dg-error "associated function in .impl. without body" "" { target *-*-* } .-1 }
}
|