|
| 1 | +--- |
| 2 | +source: test/src/snapshot/mod.rs |
| 3 | +--- |
| 4 | +> forc build --path test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics --release |
| 5 | +exit status: 1 |
| 6 | +output: |
| 7 | + Building test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics |
| 8 | + Compiling library std (sway-lib-std) |
| 9 | + Compiling script const_generics (test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics) |
| 10 | +error |
| 11 | + --> test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics/src/main.sw:10:15 |
| 12 | + | |
| 13 | + 8 | } |
| 14 | + 9 | |
| 15 | +10 | impl<T, const N: u64> A for [T; N] { |
| 16 | + | ^ This needs "const_generics" to be enabled, but it is currently disabled. For more details go to https://github.com/FuelLabs/sway/issues/6860. |
| 17 | +11 | fn my_len(self) -> u64 { |
| 18 | +12 | N |
| 19 | + | |
| 20 | +____ |
| 21 | + |
| 22 | +error |
| 23 | + --> test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics/src/main.sw:16:19 |
| 24 | + | |
| 25 | +14 | } |
| 26 | +15 | |
| 27 | +16 | struct S<T, const N: u64> { |
| 28 | + | ^ This needs "const_generics" to be enabled, but it is currently disabled. For more details go to https://github.com/FuelLabs/sway/issues/6860. |
| 29 | +17 | } |
| 30 | +18 | |
| 31 | + | |
| 32 | +____ |
| 33 | + |
| 34 | +error |
| 35 | + --> test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics/src/main.sw:19:15 |
| 36 | + | |
| 37 | +17 | } |
| 38 | +18 | |
| 39 | +19 | impl<T, const N: u64> S<T, N> { |
| 40 | + | ^ This needs "const_generics" to be enabled, but it is currently disabled. For more details go to https://github.com/FuelLabs/sway/issues/6860. |
| 41 | +20 | pub fn len_xxx(self) -> u64 { |
| 42 | +21 | N |
| 43 | + | |
| 44 | +____ |
| 45 | + |
| 46 | +error |
| 47 | + --> test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics/src/main.sw:26:19 |
| 48 | + | |
| 49 | +24 | |
| 50 | +25 | #[inline(never)] |
| 51 | +26 | fn return_n<const NNN: u64>() -> u64 { |
| 52 | + | ^^^ This needs "const_generics" to be enabled, but it is currently disabled. For more details go to https://github.com/FuelLabs/sway/issues/6860. |
| 53 | +27 | NNN |
| 54 | +28 | } |
| 55 | + | |
| 56 | +____ |
| 57 | + |
| 58 | + Aborting due to 4 errors. |
| 59 | +error: Failed to compile const_generics |
| 60 | + |
| 61 | +> forc test --path test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics --experimental const_generics --test-threads 1 --logs --revert-codes |
| 62 | +exit status: 0 |
| 63 | +output: |
| 64 | + Building test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics |
| 65 | + Compiling library std (sway-lib-std) |
| 66 | + Compiling script const_generics (test/src/e2e_vm_tests/test_programs/should_pass/language/const_generics) |
| 67 | + Finished debug [unoptimized + fuel] target(s) [2.856 KB] in ??? |
| 68 | + Running 1 test, filtered 0 tests |
| 69 | + |
| 70 | +tested -- const_generics |
| 71 | + |
| 72 | + test run_main ... ok (???, 4184 gas) |
| 73 | +[src/main.sw:31:13] a = [1, 2] |
| 74 | +[src/main.sw:40:13] s.len_xxx() = 3 |
| 75 | +[src/main.sw:42:13] return_n::<3>() = 3 |
| 76 | +[src/main.sw:43:13] return_n::<5>() = 5 |
| 77 | + |
| 78 | +test result: OK. 1 passed; 0 failed; finished in ??? |
| 79 | + |
| 80 | + Finished in ??? |
0 commit comments