diff options
Diffstat (limited to 'src/test/ui/error-codes/E0311.rs')
-rw-r--r-- | src/test/ui/error-codes/E0311.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/error-codes/E0311.rs b/src/test/ui/error-codes/E0311.rs deleted file mode 100644 index 566b518b4..000000000 --- a/src/test/ui/error-codes/E0311.rs +++ /dev/null @@ -1,9 +0,0 @@ -fn no_restriction<T>(x: &()) -> &() { - with_restriction::<T>(x) //~ ERROR E0311 -} - -fn with_restriction<'a, T: 'a>(x: &'a ()) -> &'a () { - x -} - -fn main() {} |