Zig Version
0.16.0/0.17.0-dev.56+a8226cd53
Steps to Reproduce and Observed Behavior
// file: repro.zigconststd=@import("std");constIo=std.Io;pubfnmain()!void{varevented:Io.Uring=undefined;tryevented.init(std.heap.page_allocator,.{});_=evented.io();}zig build-exe repro.zig -target x86_64-linux
Outputs:
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:2732:32: error: expected type 'error{AccessDenied,BadPathName,Canceled,FileNotFound,NameTooLong,NetworkNotFound,NoDevice,NotDir,PermissionDenied,ProcessFdQuotaExceeded,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpec
ted}!Io.Dir', found 'error{AccessDenied,BadPathName,Canceled,FileNotFound,NameTooLong,NoDevice,NotDir,PermissionDenied,ProcessFdQuotaExceeded,ReadOnlyFileSystem,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpected}'
else => |e| return e,
^
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:2732:32: note: 'error.ReadOnlyFileSystem' not a member of destination error set
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:2708:16: note: function return type declared here
) Dir.OpenError!Dir {
~~~~~~~~~~~~~^~~~
referenced by:
io: .local/share/zvm/0.16.0/lib/std/Io/Uring.zig:696:14
main: test.zig:7:19
5 reference(s) hidden; use '-freference-trace=7' to see all references
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:3157:28: error: expected type 'error{AccessDenied,AntivirusInterference,BadPathName,Canceled,DeviceBusy,FileBusy,FileNotFound,FileSystem,FileTooBig,InputOutput,IsDir,NameTooLong,NetworkNotFound,NoDevice,NoSpaceLeft,NotDir,Ope
rationUnsupported,PathAlreadyExists,PermissionDenied,PipeBusy,ProcessFdQuotaExceeded,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpected,UnrecognizedVolume}!usize', found 'error{AccessDenied,BadPathName,Canceled,DeviceBusy,FileBusy,FileNotFound,FileTooBig,IsDir
,NameTooLong,NoDevice,NoSpaceLeft,NotDir,PathAlreadyExists,PermissionDenied,ProcessFdQuotaExceeded,ReadOnlyFileSystem,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpected}'
else => |e| return e,
^
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:3157:28: note: 'error.ReadOnlyFileSystem' not a member of destination error set
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:3143:24: note: function return type declared here
) Dir.RealPathFileError!usize {
~~~~~~~~~~~~~~~~~~~~~^~~~~~
Expected Behavior
compile successfully
### Zig Version
0.16.0/0.17.0-dev.56+a8226cd53
### Steps to Reproduce and Observed Behavior
```zig
// file: repro.zig
const std = @import("std");
const Io = std.Io;
pub fn main() !void {
var evented: Io.Uring = undefined;
try evented.init(std.heap.page_allocator, .{});
_ = evented.io();
}
```
```sh
zig build-exe repro.zig -target x86_64-linux
```
Outputs:
```text
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:2732:32: error: expected type 'error{AccessDenied,BadPathName,Canceled,FileNotFound,NameTooLong,NetworkNotFound,NoDevice,NotDir,PermissionDenied,ProcessFdQuotaExceeded,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpec
ted}!Io.Dir', found 'error{AccessDenied,BadPathName,Canceled,FileNotFound,NameTooLong,NoDevice,NotDir,PermissionDenied,ProcessFdQuotaExceeded,ReadOnlyFileSystem,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpected}'
else => |e| return e,
^
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:2732:32: note: 'error.ReadOnlyFileSystem' not a member of destination error set
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:2708:16: note: function return type declared here
) Dir.OpenError!Dir {
~~~~~~~~~~~~~^~~~
referenced by:
io: .local/share/zvm/0.16.0/lib/std/Io/Uring.zig:696:14
main: test.zig:7:19
5 reference(s) hidden; use '-freference-trace=7' to see all references
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:3157:28: error: expected type 'error{AccessDenied,AntivirusInterference,BadPathName,Canceled,DeviceBusy,FileBusy,FileNotFound,FileSystem,FileTooBig,InputOutput,IsDir,NameTooLong,NetworkNotFound,NoDevice,NoSpaceLeft,NotDir,Ope
rationUnsupported,PathAlreadyExists,PermissionDenied,PipeBusy,ProcessFdQuotaExceeded,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpected,UnrecognizedVolume}!usize', found 'error{AccessDenied,BadPathName,Canceled,DeviceBusy,FileBusy,FileNotFound,FileTooBig,IsDir
,NameTooLong,NoDevice,NoSpaceLeft,NotDir,PathAlreadyExists,PermissionDenied,ProcessFdQuotaExceeded,ReadOnlyFileSystem,SymLinkLoop,SystemFdQuotaExceeded,SystemResources,Unexpected}'
else => |e| return e,
^
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:3157:28: note: 'error.ReadOnlyFileSystem' not a member of destination error set
.local/share/zvm/0.16.0/lib/std/Io/Uring.zig:3143:24: note: function return type declared here
) Dir.RealPathFileError!usize {
~~~~~~~~~~~~~~~~~~~~~^~~~~~
```
### Expected Behavior
compile successfully