diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-27078.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-27078.rs b/src/test/ui/issues/issue-27078.rs new file mode 100644 index 000000000..5f09b9587 --- /dev/null +++ b/src/test/ui/issues/issue-27078.rs @@ -0,0 +1,9 @@ +trait Foo { + const BAR: i32; + fn foo(self) -> &'static i32 { + //~^ ERROR the size for values of type + &<Self>::BAR + } +} + +fn main() {} |